Cleaned up gh-rest

* Added encodeURIComponent to all URL parameters
* JSDoc fixes