Colorized registers, bitfields, and flags

Consequently, change the implementation of the flags class and it's
callers.