Added clone function and test for cloning provisioning template.

Few docstrings updates.