Make linterManager function with changes pulled in from master.

 - Add JSDoc for some functions
 - Make the gutter click handler a prototype of Linter