added a full close function that does not close the application.
Fixed argParser checks to correctly check for arguments. argParser.parseArgs() does not return a dictionary so it can't be inspected as if it does.
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.