(#1897) - idb perf improvements for get/allDocs

Similar to what was done for WebSQL, this caches
the docCount as well as minimizing the calls to
isDeleted and merge.winningRev. The winningRev
is also stored in the by-seq store, similar to how
the winningSeq is stored in websql.