HTTP request logging to hpfeeds, various bug- and pep-8 fixes