Added API to publish a dataverse. This closes #4035