init: Explicitly set the HOME variable to the homedir of the user cloud

We have to explicitly set the HOME variable to the homedir from the user "cloud"

This is because various scripts run by the management server read the HOME variable
and fail when this init script is run manually.

For example the injectkeys.sh script reads the HOME variable
ApiServer: Fix apidiscovery fail case, fix comment

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiDispatcher: Remove unused methods which were for acl processing

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
CLOUDSTACK-932: Fix incorrect param that caused casting error while processing api
Reported-by: Kishan Kavala <kishan.kavala@citrix.com>
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>