Change get_view() to simplify the API.

* You now set self.view for both class-based and function-
  based views.