CLOUDSTACK-6257: Adding function to check state of VM

Conflicts:
	tools/marvin/marvin/integration/lib/base.py
Added missing strings in codes.py