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

Wrapping issues
Merge remote-tracking branch 'remotes/origin/gh-pages' into master