Refactor oauth code to be more easily usable in different contexts, e.g. an oauth flow inside of a web app.
Add documentation about authorization.