clearer code
better logging
fixed cryptic bug
generalized FB login links
clarified and commented all of the code. fixed facebook register