Implemented automatic resolution guessing with "vga=ask".

With this patch, the kernel picks the highest combination of resolution and color depth and shows the mode menu only upon failure to guess.