Fix issue #1 + other work

See the commit descriptions; tested and working for large binary file uploads.

Still needs a bit of work before this is production-ready code (the example code in BigUpload.php should be separated from the class and the utility filename sanitation function) but overall it's improving.

Cherrypick if you don't like certain commits in here.

Cheers!