switch to template-based rendering

use underscore templates for rendering rather than methods that return
arrays. introduce dependencies among views and remove now-unused
modules.