Preview sync

- Adds the ability for a click in the preview window to sync to the matching text in the editor and vice versa. A first-pass implementation. Feel free to change/edit to match your coding style.