Added User-Agent to GitHub requests.

Also properly close curl.
Fix the typo in the class name, now that someone did it on d.o.
Fixed up issues fetching.