Adds togglable editMode state for view

Navigating anywhere disables editMode. When enabled (from clicking
edit in content pane), the parsed markdown is replaced with raw
markdown.

Also fixes incorrect condition on adding 'selected' class to note
list items.