Add elpy-doctest-buffer function for running a buffers doctests.

This is fairly basic now but I can imagine we could jump to failing doctests if we scrape data from the python buffer.