Server split

Splits http server out from main index.js and cleans up how everything gets executed.