refactored jetty/netty common code (WIP)