Backport PR #4018: Fix warning when running IPython.kernel tests

The signature of TemporaryDirectory.cleanup() changed just before Python 3.2, and our TemporaryWorkingDirectory subclass was receiving an unexpected parameter. This copies in a newer TemporaryDirectory.cleanup() implementation for Python 2.7, and tweaks the subclass to accept the extra parameter.
Backport PR #4019: Test skipping without unicode paths

I somehow broke unicode in the terminal on this Debian box, and it revealed a load of tests that errored because they were trying to use non-ascii paths and commands. We already have a decorator for this, so I've scattered it around, and broken up a couple of tests into smaller chunks.
Backport PR #4021: Fix parallel.client.View map() on numpy arrays

Resolves https://github.com/ipython/ipython/issues/4020.
Backport PR #4022: DOC: fix links to matplotlib, notebook docs

I've added a link to pandas, made all matplotlib links point to
matplotlib.org, and fixed a link in the notebook help menu to point to our new
notebook.html, now that htmlnotebook.html is a redirect.

Whoever ends up merging this PR should backport it to 1.x.
Backport PR #4026: small doc fix in nbconvert

`__call__` -> `call` plus wrap methods name between back ticks.
Backport PR #4029: bson.Binary moved

for mongodb task backend
Backport PR #4031: don't close_fds on Windows

straggler missed in 14b007d

closes #3244 (again)
Backport PR #4035: Fixed custom jinja2 templates being ignored when setting template_path

IPython/html/notebookapp.py was ignoring user specified templates by setting the jinja2 environment to the default template directory before updating template_path.  This fix allows a user defined template_path to propagate to the jinja2 environment.
Backport PR #4047: Use istype() when checking if canned object is a dict

Using istype(canned, dict) instead of isinstance(canned, dict) ensures that dict subclasses retain their type during unserialization. This also agrees with the implementation of serialize_object().