Add utilities for allowing views to be GC'ed

@cpatrick PTAL, this is a straw man for a partial solution for garbage collecting our views in a principled way. A complete solution will involve going through all our views and registering their child views so they can be cleaned up recursively.