Getting ready for more actions and fielders, moving template code into template-tags.

Signed-off-by: Zane M. Kolnik <zanematthew@gmail.com>