Add removeTrailingLineBreaks and implement it in getValue.trim

Rebased https://github.com/metalabdesign/wysihtml5/pull/56