Fixed CLOUDSTACK-6942: LXC: optimize template copy to primary

saving LXC template as tar to primary and extracting it only when
required.
This would improve the template copy time.

Reviewed By: Kishan Kavala