Refactor DOM rendering and copy/paste support

Allow pasting into the console via a hidden clipboard. Closes #36. 
Cool, can we put a for it the next time we stumble on that code?

Otherwise, I'm good, feel free to merge it whenever you feel its okay.