More client work.

- Removed playRoutes.js. Only use REST API from now on.
- Can now expand and collapse panels in study view page.
- Fixed file names for panel templates.
- Using inheritance for study panel controllers.