Inactive magic and doc updates to writeandexecute magic

a new inactive magic (see ipython/ipython#2125 and ipython/ipython#2750)

Closes: ipython/ipython#2750