Refactoring and moving indexing interfaces to kernel.api.index

* Renames InternalIndexingState.RECOVERING to REBUILD
* Treates REBUILD as schema.IndexState.POPULATING
* Cleaning up IndexingService a bit