(#1415) - Jshint bin/ and tests/, add trailing whitespace to linter

Linting bin/

Updated jshintrc to mocha style tests

First hinting pass of tests. like s/if(/if (/

Ran fixmyjs through the tests

More test linting

Removed perf.attachments.js. It wasn't being run anyway

Update some test assertions so they pass

Respond with null results on changes error.

Now that the test assertions are a bit more strict it failed when the
http adapter responded with null while the local adapter responded with
undefined.

Added trailing to .jshintrc

Added jshint option 'notypeof'

We had this issue before in the tests where we checked against `typeof x
== undefined` (that is not a string). So it seems like a good one to
have.

Removed deprecated jshint option 'white'

Revert "Added jshint option 'notypeof'"

This reverts commit a6e1b8339df8ff8e3009c95880c9c79b5a23c06c.

Added unused: vars jshint option

Linting away unused variables

Readded white option