Wait for scripts defined in common xmodule code to execute.

STUD-1792
Add Studio handling for changes to group configurations

STUD-1658
Introduce constants for studio_view, student_view, and author_view.
Complete Studio support for handling group configuration changes

STUD-1658