Added functionalty to convert rbg colors to hex
Some optimisation in color.js
Fixed bug with rgb to hex where numbers the convert to a single character were not being padded/being right padded rather than left