HUE-2192 [core] Create parameter to choose LDAP username for HS2
[core] Support Resource Manager HA active / standby switching

Used to only failover when the RM was going down.
Invalidate the current RM API when switching RM.