Refactoring template tags to be more DRY. Adding tag.

The new template tag "unit_or_unknown" is used by one of
the implementation skins.