Commit made from kubuntu. Added cursor movement support but it isnt working.
Next step is to make client behave like slave and deal with cursor positioning in a sensible way.