implement login 3.0

https://bugzilla.mozilla.org/show_bug.cgi?id=1090285
Oh, does that mean the resources above should also be changed?