Sanitize html content in notes

Uses the sanitize gem. Allows us to retain some user formating, which is
nice.
Fix bug where note detail viewport was too wide

Jquery that adjusts the size of the viewport did not account for the
width of the (optional) scrollbar.