CLOUDSTACK-3214: transferring portable IP across zones with enableStatic
NAT does not work

making an exception for portabe IP, so that if the current datacenter with
portable IP is associated is different from destiantion data center

also on transfer on to new zone, transfer the portable ip association to
new data center, physical network id's
CLOUDSTACK-3213: ResourceStateEvents for user VM are generated with
entity type as Network

changing entity type to be VirtualMachine from Network for the events
generated by user vm state transitions
Add jetty stop function to cloudstack client
CLOUDSTACK-3185: Fix height of detail view table when in edit mode
CLOUDSTACK-3170: Support editing ACL rule items
CreateVPC: validate that the zone exists before checking its attributes
CLOUDSTACK-728 For Nicira NVP a specified port-group must be used,
instead of a dynamically configured one.

Refactor bits of the HypervisorHostHelper to better
support multiple BroadcastDomainTypes

Cleanup some parts of the code that was using tab indents and removed some dead code.
CLOUDSTACK-728 Set vmspec extra config for the Nicira NVP vApp
Fix an issue of createVolumeCmd for regular user.
Gracefully handle racing condition in updating state of dataobject and
data store mapping table.
Add check for some cli programs

Add check for faketime and vhd-util for xen export.
CLOUDSTACK-2254: Tests for Affinity and Anti Affinity rules

TestCreateAffinityGroup
TestListAffinityGroups
TestDeleteAffinityGroups
TestUpdateVMAffinityGroups
TestDeployVMAffinityGroups
TestAffinityGroupsAdminUser

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-3231: Update service offering Id of allocated Vm usage whem service offering changes for a Vm
CLOUDSTACK-3236, CLOUDSTACK-892
delete extra file on portable ip
CLOUDSTACK-1192: Disk I/O Statistics (vm stats) support KVM and XenServer only util 2013/06/25
cmds is not a list. just regular string to ssh

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
Fix reviewboard messup of python indentation

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
reverts commit 7e96bf5f1989f43db969ee026e34ae96efa54cf0 which causes regression of CreateAccount dialog.
FileUtil simplified

- writeToFile removed since no references to it
- readFileAsString replaced with FileUtils.readFileToString
- minor code duplication removed in dependent method getNicStats
- unit test added

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>