Fix saving empty files to filebucket

This allows a put request with an empty body, as is used for filebucket when using the "raw" format. It also preserves error reporting by pushing that into specific formats, in this case yaml and pson.