feat(router): add support for route redirects and missing route handling

The maximum redirection count is 10. The handling for missing routes can be configured
using otherwise method of the router. Currently, only redirectTo options key is supported.