Added HTML stuff. Moved HTTP stuff out of manager