Automation: Fix test_vpc_network_pfrules.py

Need to wait VM to boot up before stop the VR.

Also test 4 is identical to test 3, fix it.
fix CLOUDSTACK-3591 add usage recording for VM snapshots

Conflicts:

	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
	server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
	setup/db/db/schema-410to420.sql
- CLOUDSTACK-3229: Properly serialize the https property to the s3Xen
  plugin
  - Extracts the duplicated serializeProperties methods to
    ReflectUtils#flattenProperties
  - Adds unit tests for ReflectUtils#flattenProperties
- CLOUDSTACK-3229: Fixes a think-o in the handling of unmodifiable
  collections and adds a rail in s3xen to raise an exception if the file being
put does not exist
fix UI display bug for vmsnapshot, detailView of vmsnapshot always show the same one
CLOUDSTACK-1567
Automation: Fix test_vpc_network_lbrules.py
Automation: Removing the template's UUID

My bad...
- CLOUDSTACK-3229: Works around Introspector bug that does not recognize
  Boolean typed accessor methods by manualy populating the https value.
A generic implementation will be investigated when time permits.
Automation: More fix for test_vpc_network_lbrules.py
- CLODSTACK-3229: Adds missing is_blank function to s3xen
- CLOUDSTACK-3229: Removes String format method call that is not
  supported in Python 2.4
CLOUDSTACK-3042: handle System VM Scaling up of memory/CPU based on the presence of tools in the template
Signed off by : Nitin Mehta<nitin.mehta@citrix.com>
- CLOUDSTACK-3229: Fixes a syntax error in s3xen
Fix for incorect capacity displayed at the dashboard.
- CLOUDSTACK-3229: Fixes string formatting argument mismatch
- CLOUDSTACK-3229: Attempt to adjust snapshot source path to new cache
  filesystem layout
CLOUDSTACK-3947: Override getSyncObjType and getSyncObjId in CreateLBStickinessPolicyCmd.java to prevent concurrent operations on Loadbalancer in a network
- CLOUDSTACK-3229: Adds a guard condition to s3xen to prevent  double
  "/" in the resource path if the key starts with a "/" and corrects a
log message from adding an additional "/"
CLOUDSTACK-3981. ListAccounts always sets 'networkTotal' to 0.
Add vpc resource count to the response. And set the right values for network resource count.