refactoring: moving socket.io, app configuration and middleware components to plugins