Extend JsonSnippetTranslator and SnippetCollection

class JsonSnippetTranslator now works on whole QJsonDocuments instead with
single snippet to JSON conversions.

Added several new methods to SnippetCollection class.