Fixed saveMetadataXml to return the correct XML response.
Fixed saveContentXml to accept the name parameter with or without 'format.' prefix.
Do not automatically unlock OSD after setContent.

(User may wish to change other aspects of the locked object, for example change the lifecycle state afterwards - which also requires a locked object).
Added missing version command to XML API.
Replace session.repositoryName with call to BaseControllers getRepositoryName()

(so we can access "repositoryName" in the affected controllers in a way that looks type-safe to the IDE and does not generate warnings about using (Object) session.repositoryName ).