(core) split fmtstr renderer into two bits, first refactor to be able to use it from a frameserver (say, terminal emulator) without access to the rest of the video subsystem