massive update

* Built-in event system, automatic links between collections and
elements, default listeners for element events.
* Lots of documentation in the modules.
* Lots of improvements and fixes.