Library for implementing OAuth 2.0 resource servers