Create a RESTful handle_cohort view method for GET and PUT/POST.