abstracted toggle-class logic and moved mutating functions to src/actions
abstracted toggle functions from note-toggle.js
amend code style
Merge branch 'master' into jp-refactor-utils
fix failing tests with toggle selected note
Merge pull request #37 from guardian/jp-refactor-utils

Abstract Note Toggle Functionality