Fix exception when uploading an already-existing file.
Fix string format.
Fix a bunch of unicode problems in logging.

print converts to ascii sometimes:
https://pythonhosted.org/kitchen/unicode-frustrations.html#frustration-3-inconsistent-treatment-of-output
Some things were getting double encoded.

Issue #168
Fix whitespace. #168
Write to log in binary mode.
Don't modify msg.
Merge branch 'master' into new_stomp_ui