WebComment: hierarchic notes support

* Notes can now be hierarchic: Note on Page 1, Fig. 3;
* Refactoring.