Add context propagation middleware

/to @ritch @bajtos @piscisaureus 
json-rpc is. For websocket, if it has both http and ws specific context, there will be a property like `ws` or `websocket`.