Standardized the server

The server now behaves like a typical node.js server together with some
basic refactoring
Added TCP benchmark