[Tizen] Fixes for InputMethod build breaks

InputMethod interface was changed, new virtual methods were
added and need to be implemented. Event related headers were
moved from ui/base/events to ui/events and X11 utility methods
were moved under gfx namespace.
Merge pull request #843 from alexshalamov/fix_ime

[Tizen] Fixes for InputMethod build breaks