Add a simple partial rendering feature

Many of the templates have double code in them, the new render_partial method should help reducing that.
Move some generic template code to partials
Add section about templates
Update HISTORY with partials feature