moved most of the app creation out of the main loop and into an app class that will allow cleaner object handling. This fixes issues with restarts causing seg-faults because I was attempting to delete and re-create the application. Also moved all commotion specific operations out of the singleApplication and singleApplicationWithMessaging classes and put them in the CommotionClientApplication class where it makes more sense.
moved most of the app creation out of the main loop and into an app class that will allow cleaner object handling. This fixes issues with restarts causing seg-faults because I was attempting to delete and re-create the application. Also moved all commotion specific operations out of the singleApplication and singleApplicationWithMessaging classes and put them in the CommotionClientApplication class where it makes more sense.

opentechinstitute/commotion-client