The viewer now works, some fixes in the viewer.

There's just a bug when buttons are clicked a bit anarchically,
the buttons are blocked (refreshing the page resolves the problem).
But 'next' and 'previous' buttons must really be hit very very
anarchically... Maybe a problem with events unsubscribing.