Integrate JsonResponse into lms/djangoapps/instructor/views/api.py

Less code is better. The `JsonResponse` class is a perfect fit for many of the views in `lms/djangoapps/instructor/views/api.py`, because it does the same thing with less code.