move special type declarations to top

* add Keymap type, this is an array, of a special object, maybe use a
 Structure?
* add emacs_meta_keymap external variable, this exists in libreadline, but
 for some reason it always returns 0, and will probably cause a seg fault
 if called as an actual keymap
* use ord to convert single characters to ints