Clean up content type handling in the REST code. Ensure that the
webdav-like part can accept any client-provided data, and not just
application/octet-stream.