Fixed web sockets by reworking middleware structure.
Implemented path handling in DispatchTable, added tests.