Config can be set with command line flags
Moved the http routes and static file server into the constructor