Adds logic to create http server