Add MMC5 PRG RAM swapping.

Required generalizing the mapping functions to allow PRG pages to be set
as either ROM or RAM. Bandit Kings of Ancient China now restores the
background on the world map correctly.