Added event before mounting routes for easier e.g. modules configuration 

Unfinished work, have to tweak other elements. Issue #506

TODO:
- Test new configuration with my current project
- Write docs and add new option to hooks list
- ?