This patch introduces a major rework in the storage layout for the index
files, most significantly featuring a string-index which increases storage
efficiency by any number of orders of magnitude over the previous format.

Also namespaced most of the structs more appropriately.