error handling for X11 errors and connection errors. * x11conn.h: The interface for x11conn.h. * key.c: Now using the x11conn code. * Makefile.am: Added x11conn.{h,c}.