Add debugging information to templating.

Migrated summary to use a angularjs style template.