Fetched code from Sockjs-netty project and prepared for porting