Add an option to set a custom view class for notifications.

Tweak to squash into previous stuff.
Make option validator able to validate Class objects.

Use this to tighten up the validation for the notification view class
option.