Added highlighting all instances of selected text (closes #344).

If the currently selected fragment doesn't look like a variable,
then all instances of the fragment are selected in the text when
`Rename All Instances` is used.
Added replacing all selected instances using a dialog (closes #342).