Internal header cleanup.
Documented use of deprecated OS X function.
Clarified comments for X11 key repeat hack.
Added compatibility paragraphs on flush control.
Merged clipboard code into input.
wayland: Support for setting a cursor image

Closes #346.
Removed duplicate inclusion of client header.