Get non-working the OAuth2 implemented

Description:
OAuth2 is very close to working. It's just not handling the mongo
database stuff correctly at the moment. This would be fixed momentarily,
if it were not quitting time.