Fix JSHint errors. Enable strict mode.

Fixed most, but not all JSHint warnings and errors for the following files:

 lib/cradle/cache.js
 lib/cradle/database/documents.js
 lib/cradle/database/index.js
 lib/cradle/database/views.js
 lib/cradle/errors.js
 lib/cradle/response.js