Cleaned, isolated and refactored http module (now it uses request module)