Implement OAuth based on https://github.com/prose/gatekeeper

Closes #1
Merge pull request #22 from bkeepers/oauth

Implement OAuth