Fix for Issue #88 and Issue #349

This allows colors pulled in from JavaScript variables to be used with the color modification functions (fadeout, etc.), and turns valid numbers with units into their internal Less representations.