make attributes an int

prepare for true-color
split color parsing code to own routine
Update 256 color test to also do background
Use separate foreground and background buffers.

On way to 256 color support, but makes the PNG files larger...