Refactor SnippetCompleter and MarkdownEditor

* Pass SnippetCompleter instead of SnippetCollection from
  MainWindow to MarkdownEditor
* Use constructor instead of setter for SnippetCollection in
  SnippetCompleter
* Use SnippetListModel instead of QStandardItemModel