Update code throughout linterReporter for better style and performance.

Mostly fixes from previous PRs of mine. Some (seemingly) better comments and ways of doing things.

@MiguelCastillo: I'll add comments on the lines where I want to better document why the change was done. (**Edit**: Finished adding comments).
@MiguelCastillo See here for updated commit (from my comment here: https://github.com/MiguelCastillo/Brackets-InteractiveLinter/commit/df61f579342250c73acadb5350344ce0ccfaae76#commitcomment-8418107).