Updated http server to be able to use sessions