Modularize router implementation.
Prepare SubstanceController for new app state API.
Add some example states for experimenting.