Use werkzeug URL routing (like Flask does) / get rid of middleware.

...ers.

This allows the use of parameters in URLs, for example a route of

    @sockets.route("/chat/<name>/")
    def chat_channel(name):
       # ...

properly gets passed the channel name.