Apache Jackrabbit : Support usage of JAAS based authentication with Repository in OSGi

FELIX-3705 simplify JAAS usage in OSGi. It would be nice to leverage this feature for OAK installations deployed in OSGis environments.

See also https://issues.apache.org/jira/browse/OAK-696