Fluid 5284 linting

http://issues.fluidproject.org/browse/FLUID-5284

This pull requests includes changes from https://github.com/fluid-project/infusion/pull/489  as well as linting of the code base. Note that lib files are not linted, nor are they checked by jshint.

Special attention should be paid to the linting of framework files, ensuring that no `jslint` comments are left, and that any use of `jshint ignore` is properly documented. (note that there are cases that have a TODO left and require reasons to be supplied.