Added 'XGetErrorText()' to the 'int xerror()' function for more helpful error message.

Added 'XGetErrorText()' to the 'int xerror()' function for more helpful error message.

Based on:
 http://www.unix.com/man-page/all/3x/XSetErrorHandler/
 http://www.squarebox.co.uk/cgi-squarebox/manServer/XSetErrorHandler.3X11
[[ XErrorMsg ]] Added referencing comment.
Merge branch 'feature-xerror_msg_text' into develop