CLOUDSTACK-5432: potential bugs in case of stop mgt server while
template is downloading, template_store_ref has leftover not in ready
state, when create vm from that template, the code doesn't check either
zone id, nor template_store_ref state.

Conflicts:
	engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java
Revert "Fix license headers and remove @author tag"

This reverts commit 9b0ae5c04526991fcd23da0f105c3bb944d6487e.
Revert "cloudstack api post and ssl fix"

This reverts commit d5333f4596460c7123b66ad5c19fc69442696ea2.
checkstyle: trailing whitespace
checkstyle: unused import removed