[#847] More work on the new theming docs

Completed first draft of most of the templates stuff.
Still needs a lot of work.