Take a look at http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1 for vlan configurations. In particular look at the router.rsc for an example configuration. It contains everything you are looking for.
The one port connected to the ccr1016 would be a trunk port for all vlans. You will create a vlan interface for each vlan and a dhcp server, etc and assign the service to the correct vlan interface.