Rearchitecture with constant indexing.

- Pulls out indexing.
- Pulls out settings.
- Better tab key / name resolution.