Add output to IPython directive when in verbatim mode.
Addresses #5776.
Fix submitted output in verbatim mode.
Improve detection of IPython console sessions.
Clarify comment in ipython directive.
Merge pull request #5816 from chebee7i/verbatim_output

Add output to IPython directive when in verbatim mode.