Merge "Port the putDocuments() API to be synchronous."