Fb google auth

This pull request fixes the issues with Facebook and Google auth, login works again. All it took was moving the code from the .js files to the controller.