Add JWT token decoding to JSONRequestHandler.

This will be useful for making sure REST API calls are authenticated.