Fix gzip issue with Python < 2.7
Fix upload success logging
Fix Content-Type headers issue for unguessed mimetypes