Added some resiliency for bad xterm256 rgb codes.
Fixed ansi2rgb for xterm256 rgb-specified colours
Merge pull request #1 from vadi2/master

Updates from vlad