Strip non color related ANSI escape sequences from notebook output.

This fixes issue #2385.
Merge branch 'master' of https://github.com/jfeser/ipython