improve wrapping for markdown
add wrapMethod:auto and fix tests
tweak jshint console mock
Merge pull request #1520 from ajaxorg/wrap

Wrapping issues