[Refactor branch] NZBGet fixes

I finally upgraded my ancient Spotweb install (dbschema version 0.36 :)) and noticed that NZBGet support was broken in the Refactor branch.

I added curl_setopt ($ch, CURLINFO_HEADER_OUT, true);  to make debugging easier.
Some cosmetics were fixed as well. I put those into a separate commit.