Improved handling of errors on startup

If certain kinds of errors occurred during startup of the HearthStats.net Uploader they would cause the app to appear to hang, because there was no handler for the error. I've fixed this so that all errors, exceptions, throwable of any kind during startup will cause an error popup to appear and the stack trace to be written to log.txt