fix SELF_USER_AGENT defined with blank VERSION
better error reporting in fetch_file_contents()
implement HOOK_FEED_FETCHED