Automation: Fix test_vpc_routers.py

Account cannot be cleaned per test case since it's setup in setUpClass()
Marvin: Add missing __init__ to StaticRoute
CLOUDSTACK-3982: listAccounts - count only UserVms when calculate total number of Running vms per account
CLOUDSTACK-3950: the issue can be reproduced by: copy iso failed during the first time, for some reason, then copy the same iso again, the issue be triggered.
rbd: Enable snapshotting of RBD images

Signed-off-by: Wido den Hollander <wido@42on.com>
CLOUDSTACK-3731: [GSLB] deleteGlobalLoadBalancerRule fails with the
java.lang.NumberFormatException

While deleting LB monitor and GSLB service binding Nitro API fails
with wierd NumberFormatException. Adding a workaround to delete the LB
monitor after GSLB service is delted (which ensures intenrally LB
monitor is delted).
CLOUDSTACK-3987: Setting extract.url.expiration.interval is not honored
for S3 generated url, which is hard-coded to 1 hour.
CLOUDSTACK-3976: delete parent snapshot if child snapshots are deleted
CLOUDSTACK-3976: if the snapshot is empty and it's the last one in the chain, we need to take full snapshot for the snapshots in sequence
Automation: Fix SSH connection test

And increase default retry to 10 times, each 30 seconds.

Comment out auth exception part because sometime it caused failure when VM
is starting up.

Now we just wait anyway for 5 minutes if it's failing.
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