Add a copy command to mathjax context menu.

This hooks into the Copy plugin, allowing math to be copied on its own.
Integrate copy with internal copy buffer.

This means that copying something to the system clipboard also
duplicates it to our internal buffer. The math plugin might not be
the best place to put this, but it certainly needs it the most.