CLOUDSTACK-4649: added support to removeResourceDetail to remove details for UserVm/Templates

Conflicts:
	engine/schema/src/com/cloud/vm/dao/UserVmDetailsDaoImpl.java
	server/src/com/cloud/metadata/ResourceMetaDataManagerImpl.java