autox: Load key mappings ourselves and OO-ify the code.

I'm hoping that this will resolve the issue that sosa
was seeing where autox was complaining that it couldn't
find a keycode for the shift key until a physical
key had been pressed on his netbook.  At the very
least, it should make it easier to track down what's
going on.  Note that this issue sounds a bit like the
one described at http://www.mail-archive.com/tigervnc-users@lists.sourceforge.net/msg00071.html .

Review URL: http://codereview.chromium.org/556054
4 files changed