First stab at implementing OAuth 2 JWT bearer flow. Incomplete solution.