Simplify the Facebook login.

Mainly cutting the unnecessary JS out of the loop.
Store the session in a cookie.
Error handling and cleaning up loose ends.
Switch to a multi-stage login.

This allows us to take form arguments at the first stage and tie them to an account after the Facebook redirect.
Get the email if it wasn't provided by Facebook.