Cleaned up main.c

Put several items into the VGA.c/.h files where they belong, system
confirmed to still work.