Adds ability to set custom HTTP request headers
Minor fixes and replace tabs with spaces.