support notebooks in %run

Simple enough - just generalized safe_exec_ipy a bit to support a sequence of cells rather than just one cell (the .ipy behavior).

I think we have an issue open for this, but I can't seem to find it. (closes #1675 -pi)