Add jshint and set all of the quicktests to strict mode.

Fix many improper implicit global vars, and clean up code, and add many semicolons.
[cleanup] [minor] improve quicktests
Merge pull request #914 from palantir/jslint-quicktests

Add jshint and set all of the quicktests to strict mode.