galaxy/histories: tiny patch for current galaxy-central

In recent versions of Galaxy, the API for creating a new HDA expects a payload containing 'source and 'content' keys. This patch makes `upload_dataset_from_library` work with the latest galaxy-central while keeping compatibility with the old API.