main: added controller structure and function definitions.
main: added memory map functions.
nes: added cart validation and mapper controller.