Initial oauth2 protocol and cli client implementation.