Refactored Server.coffee to separate the db queries and the HTTP listener.