Mustache templates

Even more UI flexibility is added using mustache templates.

These are used for building lists (in PHP as well as JavaScript), but also for email templates.