Generic Controller for express / compound / socket.io and everything else