refactor module view templates to reduce duplication

@dannyroberts 

QA ticket: http://manage.dimagi.com/default.asp?122993
One thing I've done in the past is to include a comment near the place where I'm constructing the identifier with a list of the possible values that would be constructed. This is only practical when there are only a few, but this might be a good candidate for that. For example:

```html
{# for grep: case-detail-screen-config-tab product-detail-screen-config-tab #}
```