Shared JS for Bluefire Identity service to auto-login an angular app using angular ui routing.