Refactor DOM rendering and copy/paste support

Allow pasting into the console via a hidden clipboard. Closes #36. 
Can we avoid the `Function#bind` here? We can easily support old browsers with `var self = this` above.