urls:

Cleaned up the OQTemplateView class, added some comments, and made it
a more general-purpose utility.