Rack middleware to handle JSON Web Tokens