Implement ClipboardManager.getPrimaryClip.

Fixes #1060. Closes #1066.