CLOUDSTACK-6257: Adding function to check state of VM

Conflicts:
	tools/marvin/marvin/integration/lib/base.py
Added missing strings in codes.py
Review from pyr https://reviews.apache.org/r/20557/
CLOUDSTACK-6472 listUsageRecords: Pull information from removed items as well, fixing NPEs/Null UUIDs with usage API calls.
LOUDSTACK-6475: cleanupVPC task - removed the transaction wrapping up multiple VPC destroy as the destroy operation has external calls, to prevent long-locked transaction.
Reviewed-by: Prachi Damle
CLOUDSTACK-6569: IAM - Regular user is able to listNetworks of another
user in the same domain , by passing account and domainId.