Sass 3.3 performance tweaks

I've rewritten some methods that get called very often in ruby code. This gives a 40% compile-time performance enhancement. 

Ideally, the ruby code would only be referenced in sass if it's a ruby environment (to stay future-compatible for libsass), using a dynamic function or something - at the moment it's just hardcoded.