Added: support for new indexer features

Please see the whole explanation in https://github.com/cozy/cozy-data-indexer/pull/12

Please note it's not built, so tell me if the review is okay so I can build to let Travis pass the tests.
Actually I'm going to revert that. It breaks BC.