Backport defaults/actions handling in frontControllerApplication implementation, from http://download.geog.cam.ac.uk/projects/frontcontrollerapplication/
Modernise defaults/actions handling