Clipboard communication

This adds tests and functionality using the clipboard to communicate with the EHR app. Note that it wipes out anything that might have been stored in the clipboard when this used. Saving the clipboard and restoring it may be complicated since it can contain a variety of objects and not just text.