Bring back do_pastebin() and use the opportunity to factor out some shared code.
Bring back do_pastebin() and use the opportunity to factor out some shared code.

aktorion/bpython,kdart/bpython,kdart/bpython,wevial/bpython,wevial/bpython,aktorion/bpython