bump mojo version to 4.0, port tests to new websocket/json interaction
port remaining websocket/json functionality to the new mojolicious 4.0 handling