CLOUDSTACK-3273: ClassCastException when adding cache store via API

Filter the detail map sent over the wire into Map<String, String> before
processing underneath by  storage life cycle

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-3230: UI add cluster remains in processing state
CLOUDSTACK-2763
CLOUDSTACK-3361. [Projects] Allow a normal user to edit public templates created by him.
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cloudstack
CLOUDSTACK-3190: Async jobs actions now trigger event bus messages to be
published

-AsyncJobManagerImpl to publish async job events when async jobs are
created, updated and completed
CLOUDSTACK-3333: Start port and end port disabled for protocolnumber
Network GC test moved to regression suite

The network GC test is a long running test as it waits for
network.gc.wait + network.gc.interval * 2 to verify that the network
cleanups happen corectly. This test is also part of the regression suite
and is redundant in the smoke. The test run takes 30m longer because of
this test included in smoke.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-3374: bucket names cannot contain periods.

The older AWS SDK 1.3.21.1 had a bug where in bucket names that contain
periods like a DNS name would fail to work over https. Bump up the
aws.sdk version to 1.3.22 which fixes the bug

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
do not wait for cleanup

simply cleanup and exit and network.gc will happen later

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 620ed6e0f177bf32aa8d966cade07b93c7045dc9)
do not wait for cleanup

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-3354: The CentOS built-in is dynamically scalable

Marking default CentOS template as dynamically_scalable template. The
PV tools are installed in our CentOS 5.6 template already.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-847 ui part
CLOUDSTACK-2592 [Automation]: Scale up VM on VMWARE without license doesn't throw appropriate error

Now ESXi server license would be fetched to see if HOTPLUG feature is license or not.
Throw Exception if the feature is not licensed.

Also added FeatureKeyConstants enum type to maintain list of various features to be checked whether licensed or not.
CLOUDSTACK-3389
pod/host dedication failure cases
CLOUDSTACK-234: create/delete firewa/lb/pf rule: send ip assoc command
only on first rule is created on the IP and last rule is revoked on the
IP

Current suboptima logic of IP Assoc

 - On associate IP to GuestNetwork there is an IPAssoc command sent to
   corresponding network service providers of the network
 - On every rule apply on IP associated with the network send IP assoc
   to the network service providers
 - On every rule deletion on IP associated with a network sernd IP assoc
   command to the network service providers

With this fix logic of IP assoc is changed as below which eliminates
executio of unnessary and expensive IpAssocCommand resource command

 - On associate IP to GuestNetwork, associate IP only to the network,
   Untill any service is associated with the IP dont send IP Assoc
 - On creation of first rule on the IP send IPAssoc to corresponding
   network service provider. Since IP is used for a service, IPAssoc
   need to be sent to correpondign service provider
 - On deletion of last rule on the IP send IPAssoc to corresponding
   network service provider. When last rule is deleted, IP has no
   service associated with it, so send IP assoc to service provider to
   remove the IP association
CLOUDSTACK-3384: CloudStack allow VLAN range between 0-4096. Should be 0-'4095'.
CLOUDSTACK-3112. UserCredentials that is injected in AuthenticationHandler is not picked up
CLOUDSTACK-2806