Add adapter registry and detect index adapters

Closes #8