DIFFEO-53: add to_kvlayer index (docid,time)->source

Also make the indexes configurable on to_kvlayer