refactor netty http server and websockets