Share 2.0
Make sure the name is unique before using it.
Clean up temporary files on errors.
Don't return a response until 'finish'. Fixes #12.