Broadcaster pages

Participant Javascript has been substantially refactored, re-creating the pull request instead of the outdated one.
Document in one place all events.