Add simple router for URL handling

Support for the history API coming soon.