Moved private helpers to the bottom.
Added specs for HTTP module.
Fixed code style offenses.