Webmachine implementation of an OAuth2 server