[duim,gtk] Add clipboard support

At the moment it can only set the content of the clipboard because calling
the gtk-clipboard-wait-* functions blocks the program.

There's an [open bug in Chromium](https://code.google.com/p/chromium/issues/detail?id=136608) that may be related to what I see.

I could not find a way to use the async functions to work around it.