Implementation of X11 input, api, and window functions. Still needs some tweaking and cleanup - going to test this on the ancient Laptop.