Refactoring of SocketIOPipelineFactory and ResourceHandler