Socket.IO added: small refactor for providing Express static content and REST server with WebSockets.