Add rich text clipboard support.

Using the code found at https://gist.github.com/1064253 , add rich text
support to iTerm so that the copy command includes two versions of the
clipboard, one using color for rich text paste, and a plain text version
for standard paste. Fixes issue 346. This required minor updates to
the original code.