Some fixes and improovements for datastream uploads.

https://github.com/Islandora/islandora/pull/567