fix #1814 set __file__ when running .ipy files
fix #1814 set __file__ when running [i]python files through interactiveshell
fix #1814 set __file__ when running [i]python files through interactiveshell
%prun: Restore `stats.stream` after running `print_stream`.

When profiling, the output from `print_stream` is captured so that the
output can be paged. To do so, the `stream` attribute is set to a
`StringIO` object but was not restored after the output was captured.
As a result, the stats object returned by `%prun -r` did not display
any output when calling its `print_stream` method.

In addition, the `pstats.Stats` class has the `stream` attribute for
all currently supported Python versions, so the extra branch of code
can be removed.
different images in 00_notebook-tour

Use berkley webcam instead of google doodle in notebook-tour to be sure
to have different images in embeded vs soft linked to have a more
striking example of an always changing images that stays the same at
loading time (Embeded), vs alway up to date when using url named
argument.
show message on notebook list if server is unreachable

usefull when :
server goes down, you don't notice it on dashboard

restart on https, cookies is unvalid, autoreload don't work
pep8
Merge pull request #2159 from Carreau/dashbord_refresh_on_error

show message on notebook list if server is unreachable
Merge pull request #2092 from bfroehle/prun_print_stats

%prun: Restore `stats.stream` after running `print_stream`

When profiling, the output from `print_stream` is captured so that the output can be paged. To do so, the `stream` attribute is set to a `StringIO` object but was not restored after the output was captured. As a result, the stats object returned by `%prun -r` did not display any output when calling its `print_stream` method.

In addition, the `pstats.Stats` class has the `stream` attribute for all currently supported Python versions (2.6, 2.7, and 3.2, at least), so the extra branch of code can be removed.

Closes #2091
Merge pull request #2116 from Carreau/tweek-notebook-tour

different images in 00_notebook-tour

use Berkeley webcam for soft-link/embedded difference illustration.
Merge pull request #2181 from minrk/displaymagics

add %%javascript, %%svg, and %%latex display magics
Merge pull request #1471 from minrk/connection

simplify IPython.parallel connections and enable Controller Resume

Rolls back two-stage connection info, putting more information into the connection files. This makes it easier to use hand-crafted ssh tunnels, as all ports are read from the file, rather than from the reply to registration/connection requests.

It is no longer possible to connect to the Controller without a connection file.

Adding the serialization method to the connection file also makes it harder for custom serialization to result in a mismatch in configuration between the various objects.
Merge pull request #2051 from jasongrout/stream-metadata

Add a metadata attribute to messages

subheader is removed in favor of the new metadata dict,
reducing degeneracy.
Merge pull request #1831 from steverweber/fix_1814

set `__file__` when running .ipy files

closes #1814
better serialization for parallel code

* no longer use newserialized
* no longer double-pickle anything
* can/pickleutil handles arrays
* pickleutil has [un]can_map dicts for extensibility
* don't can each element of long sequences
add copy_threshold to limit use of zero-copy to sufficiently large messages

threshold is triggered on the largest part of the message, and copy is applied to all parts, to avoid split-sends.
remove unused newserialized imports
move zero-copy threshold to 64kB
use brief dtype, rather than full object
update serialize tests