Implements NanoUI for APCs, and make a couple other tweaks to the NanoUI framework.

AI can also toggle the APC lock for human access.
Merge pull request #1747 from YotaXP/NanoUI-APC

Implements NanoUI for APCs