Extract class_attribute functionality from ActiveSupport
Support older active supports that don't define directly into String
Support all the way back to activesupport 2.0