SimpleMessageRepository now produce JSON metadata and XML document.
Also added some small tests to validate JSON format produced.