Tiled Gallery: From HTML Builder to templates.

Instead of using an HTML Builder, let's separate the presentation and the domain logic even further by taking all the HTML and putting into templates we then require.