Tweaked authentication code. Everything should now work with Facebook and Google auth on Heroku...but localhost is throwing errors.