Refactor http module.
Do not export http headers by index.
More refactor of the http module.
Tidy http module.