Index class now handles duplicate keys emitted by same doc
Added more support code for full-text indexing

(Moved here from CouchbaseLite, so it can be used cross-platform)
Fixed MapReduceIndex not reloading its state on reopen