Add support for 256color xterm codes

* 216-color RGB cube is supported as 'rgb' with range 0-5 for each color
* 16-color Grayscale is supported as 'grayN' where N is 0-15