play java application for OAuth implementation, which acts as ReST server. Authentication happens as server, client gets JSON as response