Custom middleware for validating JWT

@zespri The team has been hard at work putting the foundation in place for this to work with Yaegi. We're expecting a beta soon, but as with all things software development it's hard to say exactly when.