refactor(client): Greatly simplify mongo.js.
refactor(db): Use Mongoose's findOneAndUpdate atomic read/write functionality for counters.
Merge branch 'db-simplify'