Add UI support to new router.

This is to prepare next commits: change each plugin to make it fit the new architecture.
Merge pull request #367 from typesafehub/wip/add-ui-support-to-new-router

Add UI support to new router.