Add optional Markdown support for the comment dialog.

The comment dialog now includes an "Enable Markdown" checkbox for
choosing whether the comment should be in Markdown format. The
TextEditorView used will reflect that setting, transitioning between
CodeMirror and a native textarea.

Unit tests have been added to test that functionality works for all the
various states.

Reviewed at https://reviews.reviewboard.org/r/6479/