OAuth 2.0 server-side implementation written in Scala