Added clone function and test for cloning provisioning template.

:+1: