changes to prevent app crashing with references to cascades::Application...

... removed from classes initialized in main