Adding devise according to devises instructions.
Not doing much beyond the minimum for this.
Adding signin/logout links
Using Doorkeep gem for basic oauth2
I'd rather write my own oauth provider, but for a quick example,
Doorkeeper should work...