Added basic logging capabilities
Application is now a singleton class. Full path is used to execute the run hook (still don't know why this doesn't work in Mac OS. Currently debugging pithos+ API call.