Add support for module system.

Add route facility to enable modular system on web app.
Restructure Core.php to make easier to use.
Separate routing from index.php.
Refactor namespace.
Optimise routing with more simple and elegant way.