restapi: copy vm/template permissions REST part

When creating a VM from a template or a template from a VM
it is possible to specify the template.permissions.clone or
vm.permissions.clone boolean parameter
to copy the template (VM) permissions to the newly created
VM (template).

Change-Id: I64a0bc3d30cf5ccfb08efe1d02e1c9466d01fe66
Signed-off-by: Tomas Jelinek <tjelinek@redhat.com>