Add flush() call after writes

And allow plugin to support remotely-generated hashes for migration safety
verification
Ensure redirects are complete requests
Ensure HTTP filenames are encoded consistently
Add blocksize concept to the file storage API
Merge pull request #515 from greezybacon/feature/file-storage-api-2

File Storage API v2

Reviewed-By: Peter Rotich <peter@osticket.com>