adding upload_archive_from_ref

As an option to upload_archive, which takes a file path, adding
upload_archive_from_ref which takes a reference to data, so you
don't have to write it out to the filesystem if you already
have it in memory.