GUI:
- fixed GUI freezing on loading another ROM;
- optimized palette generation;
- code cleanup and refactoring.

Board: Fixed mirroring for AxROM.