IOSKeyboard now can accept input from an ios UITextField control

this commit based on the PR https://github.com/xbmc/xbmc/pull/2101 which is not merged yet.
so the first 4 commits is come from that PR, the laters is the real work.