Support custom key extractors for indexes

Not yet ready for merge: this currently just changes the `WT_EXTRACTOR` API to allow for multiple keys.
A comment about what the terminate method is for would be handy.