Pass hash to find_one for non ObjectId finds

When switching to a UUID the find_one method will fail unless you pass a
hash: `{ :_id => id }`
Move errors into a more common namespace
Merge branch 'custom-pk'