Modified http util to support additional headers

Inverted some header logic

Removed user_agent and referer from http, in favor of headers dict

http: formatting

http: Fixed missing part in conditional