Refactor user auth for Firebase 1.1.x.