Consistent handling of view context

Expects a context object or function within modal#display and either
references or invokes a context, depending on whether it is a function
or not.