Added tag templates and support for galleries.