added router, encapsulated in constructor or something
creates and exports an http server
Returns the request listener instead of a server