Various contributions

Thanks for the code! We're going to use it at [Teambox](http://teambox.com).

I'm sending some fixes we had to make:

- For REST compatibility I added support for 201 responses on upload
- I made Chrome add nice filenames