refactoring:

- extract display definition into model
- allow casexml users to define wrap behavior with a django setting