Some more restructuring, as well as a base template for the index.