Merge branch 'master' of https://github.com/mongodb/mongo into newshell
 recalculate length whenever write to shell.
Merge pull request #1 from Bloodevil/shell_nextline_bug

SERVER-14931 linenoise incorrectly duplicates lines containing multi-byte characters, when text wraps