The original idea of including this function in `./view.js` seems to be
that it's shared between the demo reader and Foliate. But
- It's currently not used in the demo reader any more.
- It works, but it lacks features.
- In any case it's not coupled with anything else in `./view.js`, so at
best it should be a separate module.
Also: remove unused variable and fix indentation
- Remove special handling of footnotes
- Open all links by default
- Reader can return `true` to prevent default action
- Expose link handling as a method, which the reader can use to set up
links outside renderers (e.g. in popup footnotes)
The view will only:
1. Send a signal to the reader when overlays are created
2. Allow the reader to add or remove annotations for active overlays
only; if the annotations won't be on an overlay, it does nothing
3. It returns the index and label, which helps the reader stores
the annotations.