Improve git/github api error handling
Small refactor
Jshint fixes
Add support for papertrail logger