Fix JSHint errors. Enable strict mode.

Fix most JSHint errors in lib/cradle/database/attachments.js and lib/cradle/database/changes.js. Added a FIXME comment about use of non-declared 'cached' parameter.