Integration session test should clear dbs beforehand; document creation should not specify explicit id
Several issue fixes
Fix a few older tests; add a bunch of store.allow callback parameter expectation tests
Add sinon as devDependency for tests