use django rest framework viewsets & routers

Django REST framework 2.3 introduced viewsets and routers, which provide very similar functionality to that in `rest/app.py`.  Update the latter to leverage these new features.

See tomchristie/django-rest-framework#741.