Refactor Studio editing JavaScript to make it easier to test
Add JavaScript tests for Studio editing and XBlock server interaction
manage.py test runs JavaScript tests