Added support for apps with no routing
Improved handling of globals by keeping track of which have been set