ISPN-4523 Test for HR PLAIN auth against LDAP over SSL

Covers end-to-end SSL encryption between HR client and server
as well as between HR server and LDAP server.
ISPN-4237 Wrap access to the global component registry in a security action
ISPN-4666 Remove getopt dependency from server/core