OAuth login

Commits 468e042f3907a7c30a5f95ec86cc414bd502b1ea and 1099f7538c4585a14fea424f982afc054a33ba11 fix problems with Google/FB/Twitter credentials.