Change window size using XRandR to 1280x1024 if possible

Added new functions to X11Connection to change the screen size using XRandR and a new algorithm unity::autopilot_wrapper::ScaleToPreferredMinimum which calculates an optimal size mode and calls through the connection to change the size to that mode.