Wire up custom authentication and make the config an auth info available from the js.
We keep it working from Plone and statically from index.html
with the help of ng-init and an alternating html/pt wrapper.