Application controller for Dojo single page applications based on History API