Fix the issue with multiple agent call

This patch fixes the issue related to execution of the same execution plan on
multiple VMs. The root cause was agent handling code which overwrites template
with execution plan.
Now template is deep copied before execution plan creation.
Thanks to Stan to help to fix that.

Change-Id: I1d101ab155c46986ac4eed0e53beed7c8df1b569
Closes-Bug: #1335929