Add option for trimming whitespace in getValue

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