Better error handling.

On uploading an invalid file, abort immediately and delete the blob.
If a python exception occurs, print it directly to the http client (which is
a bit lame, but much better than just silently being weird about it).
2 files changed