Add ability to store View metadata

It would be meaningful to store state within a view and avoid polluting the View root-level attributes with stuff.

I would like to submit more PRs around Views which would benefit from this functionality.