Refactor/template reorganisation

Ongoing work to move templates and views that are only ever used on the server or client into the respective directories so that our file structure makes sense. Keep `app/common` only for things which are actually common to both.

This is a WIP, but in order to avoid having one **massive** PR, I'll push whenever it works and is stable, and it can be reviewed (and merged) as people see fit.