Remove unused cursor member variables.

The cursor is now drawn by the TextRenderer.
Improve implementation of getCursorCapsMode.

Note that I have not seen this method get called, but we might
as well have a proper implementation.

(This is part of trying to figure out why text is capitalized
on some phones.)