Wrap nbconvert Markdown/Heading cells in live divs

Addresses https://github.com/ipython/ipython/issues/5206

This partially mimics the live IPython notebook layout, but is not a
complete solution.