Improved logging of out-of-memory errors

If the HearthStats.net Uploader runs out of memory, it should now display that error in the log window before it dies. Previously it would quietly stop doing anything, and you'd have to check your log.txt file to see what was wrong.
Merge remote-tracking branch 'HS/master' into maven