Another big refactor

- Created a paths command that finds relation paths
- Automatic reindexing on saving of models is fixed
- Allow a custom mapping to be specified on the reindex command