Add ViewSynchronizer implementation for HTML preview

Add implementation of ViewSynchronizer class that synchronizes the
Markdown editor with the HTML preview and move the code from MainWindow
class to HtmlViewSynchronizer class.