Fix problems with watch browser bundle.
Remove unused function definition.
Use promises instead callbacks in ModuleLoader and PageRenderer.