Feature/http server

I refactored it, so it should be mergable now.