Fixed the issues module.

* Added a user-agent header as per requirement from GitHub.
* Added a check for the http response code, only try parsing message if result was OK.