(#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
(#1411) - remove link to nonexistant blog
(#1393) - Errors in browser tests
(#1393) - Follow up to fix lint error
(#1406) - Return helpful constructor error msg
(#1172) fix total_rows/migration for websql/idb

This commit adds several major fixes to the WebSQL
and IDB adapters:

1) total_rows now correctly returns the number of
undeleted documents, ala Couch.

2) keys/startkey/endkey/key/limit/offset logic
is now largely handled in the database for performance
(esp. WebSQL).

3) Various fixes to the above to match Couch behavior.

4) Migration logic to ensure that even if the database
schema changes, existing users can be migrated
to the new schema. Migrations have unit tests.
#1172 add leveldb all_docs/migrations
(#1172) Use non-minified for pouchdb-1.1.0-postfixed.js
(#1172) - Fix jshint errors and bitrot