Move the sidebar to a template
Use the right 'ref' for types

We used to start again from zero in each section. What we need to do is
keep around the original offset in the array.
Move the 'file list' into a view

This should make it clearer what belongs where.
Make the version text a view