Tiled Gallery: Split rectangular talavera.

The rectangular talavera code is split so that responsibility of the generated HTML falls to each element themselves. A row in the mosaic layout is responbile for its HTML, which asks for its groups to generate their own etc.