CLOUDSTACK-6600: fix a bug in IAM cache in constructing cache key.
CLOUDSTACK-6626: UI - fix a bug that g_userid was not declared.