Source code for setting up doorkeeper OAuth2 endpoints