Issue #108 - port functionality over from iOS related to checkpointing behavior.  Verify unit tests still pass.

https://github.com/couchbase/couchbase-lite-android/issues/108#issuecomment-36802239