reworked HTTP system a bit and added keep-alive