fix environment lookup of application debug configuration
basic route+view support (/test)