CSS Function Optimization

This commit adds support for the units contained with css functions, such
as gradients, rgb, translate, etc.

I also improved detection of the gradient function.

See attached screenshot

![example](https://f.cloud.github.com/assets/83376/891399/33ac763c-fa57-11e2-9a83-54671d1638da.png)