Merge pull request #3220 from minrk/profile-race

avoid race condition in profile creation
Merge pull request #3201 from minrk/fastcolor

use much faster regexp for ansi coloring
Merge pull request #3088 from minrk/nbsettings

cleanup IPython handler settings
share code between zmq channel handlers
add stdin channel to NotebookApp
specify socket identity from kernel.js

required for stdin routing
add stdin to notebook

dumb / gross / ugly jQuery modal dialog for now,
but it works!
flush stale messages on stdin channel prior to raw_input
use inline raw_input instead of a dialog
clear_login_cookie is a no-op for websocket handlers

there's no cookie to clear, and it will raise on tornado 3.
cleanup stdin event submission

follow example in rename notebook: remove form, bind keydown for enter,
avoiding shift-enter submitting the cell again.
tweak raw-input styling

should fix alignment of raw_input and prompt