add support for authentication via email/pass and social sites

Signed-off-by: Imre Deak <imre.deak@gmail.com>