nes: added mapper number detection.
nes: cart is now handled by the nes mapper controller.
main: controllers and CPUs are now only inserted when successfully initialized.
main: added memory read/write region support.
nes: added work ram region.