Add support for OpenSeadragon viewport rotation
Ensure that UI controls are synced on start

This is unnecessary if you're generating HTML server-side with the
correct initial values but is important for static files like our
examples.
Update examples to support URL history

This stores the current group/index in the URL hash to restore state on
load.