Tidy based on AII learning.
Imported updated models.
Updated test data.
Implimented new index mechanism.
First round of permission checking.