generalized support for triggers and switches
Merge branch 'develop' of https://github.com/readium/readium-shared-js into develop