Refactored and put CPU functions in ARMCPU and system level functions in system

Added TestModes to test the CPSR modification functions