Support a custom header view class in modal

Similar to the support for custom content view classes and custom
footer classes this allows for a custom header.