HTML5: setting up docco for documentation

To be used
HTML5: moving global objects into modules

There's a new class Module to organize modules in the application. Prevents
errors from cyclic require's.
The number of modules can still be reduced by organizing them better.