add notUnique errors to invalidKeys when thrown by Mongo rather than being caught early
add attachSchema method; closes #44
refactor common code
bump version