Allow readline to deal with keypad stuff

- Fixes arrow keys for history, editing etc.
Add readline cursor tracking

- Modified the C extension to access rl_point