Support remote user management and user credentials grant type

Code was written by Sanel and originally pushed to:
https://github.com/ymc/ymc-oauth2-server
Used commit for this was: 5d5293f09fb38bc4bd7f0475b15e73ed82dd26b1