Clean up item views, use JsonResponse class
improving code style
Refactored get_module_previews function
XBlock integration: replaced `get_html` with `runtime.render()`

Currently calls the same machinery, but re-routes the logic in preparation of
deeper integration with XBlock
Made some tests more general, less fragile
Make sure to return the content, not the fragment
Docstrings