Adding templatetags and tests, along with a handy base class for templatey testing