Fixed some errors in http server. Still has a problem serving static files