src/core/*, src/ui/*, include/core/*: refmt, cleanups, and const'ing 3/?