Remove accidentally committed debugging code
refactored startup code somewhat to avoid situations where midcom::get() would not
return the application instance