Simplified directory structure.
Fixed few bugs.

In several places persisted references to global
symbols that have been now replaced. A weird thing
about these bugs is that whenever they occur inside
a promise nothing is raised, the control simply
go back to the main run loop (this make debugging
them very hard, there must be a way to let the
exception be seen).