Allow filename with extension in find_cmd in Windows.

closes gh-3316 (hopefully)
Drop patch for compatibility with pyreadline 1.5

Closes gh-1307
Set calling program to the empty string, when argv not in sys

It might happen, then the sys module has no argv, when embeding IPython
into other programs with IPython.embed(). In that case, just set the
calling program to "" or other logic in IPython will crash - for
instance when checking for command line arguments.
Added shorcuts to split cell, merge cell above and merge cell below.
don't blacklist builtin names

it is wholly appropriate for a class to have a `format` trait, or similar, but Config prohibits it.

This just removes that prohibition.
update config builtins test
Added '-' as a shortcut for splitting cells.
Markdown in heading cells (take 2)

small typo prevented the previous implementation from working.

This also moves the rendering to the 'render' method,
away from set_rendered.

closes #3053

(again)
truncate invalid multi-line headers
merge heading lines

markdown headings must be a single line
remove unnecessary heading-anchor

residue from when the heading text itself was a link

the id is on the header tag itself,
and the link is anchor-link
allow extra pandoc args
use mathjax-style for math passing through pandoc to html
add html_text and add_anchor filters

- html_text is like $(element).text
- add_anchor add the anchor url and link for heading cells
enforce  single-line heading cells in templates
use plain markdown for headings in base latex

addresses the fact that many generic markdown operations are not allowed within settings, and pandoc will handle these.

Sphinx still has its overrides because it needs to change the level mapping.
add some missing parentheses
use markdown for rst headings

underlines and all, no need to measure length.
catch any exception appending output

HTML output can have javascript with errors, etc.

No output should ever raise, no matter what.

closes #3620
fix some unicode in zmqhandlers

prevented session identity from being set properly,
which in turn prevented stdin from working in the notebook in Python 3.

closes #3494