implement login 3.0

https://bugzilla.mozilla.org/show_bug.cgi?id=1090285
used by persona login