refactor deem server to be an object and startup server with index.js (prep for adding tests)