Replication to server when saving complete docs.

Also, the “Send data” button now does both replicateToServer and
replicateFromServer.