Add more tests for SnippetCollection
Turn interface JsonTranslator into abstract base class

The class JsonTranslator now provides the implementation for reading
and creating JSON documents. Derived classes only have to provide
methods to map their item class from/to JSON objects.