Routing done.
Improved routing, less code, and allows you to set a page root.
Merge pull request #7 from gmodcoders/routing

Routing done.