add support for specifying the domain type in the zone template.

Currently when creating a domain from a template the domain type is always set to be 'NATIVE' and the value from the drop-down menu is ignored.
This commits allows to specify the type (and master for type SLAVE) in the zone template and the domain will be created accordingly.