Added a permission needed for OAuth.
Major changes affecting socket and OAuth flow.

Fixed problem the with the socket, needed to be in a new thread.

Remade the whole OAuth process from the ground up, now it works. It is
now more simplistic and uses the right scope.

Added some debugging.