added basic oauth2 support and facebook and github support