Migrate parts of the API to Django REST Framework