Added a clarification about copy events.

I literally just spent an hour not realizing I had to look elsewhere, so I left a comment.
Fixes UITextInput::getSelectionText()

Fixes issue #186

There were some semantical errors with its implementation. Rewrote most of the function using a more concise and intuitive algorithm.
Merge pull request #188 from CIB/cleanup

More cleanup and bugfixes