Implement hardware cursors.

This adds support for hardware cursors, and enables them by default for a big win in mouse responsiveness.