Moved texture format related stuff from CGSHandler to CGsPixelFormats.
Moved GS dirty page management logic in a separate class to be used by other objects mapping to locations in GS memory.
Minor cleanup.