1.8 support.

Support for 1.8. Biggest change is the need to inject an ActiveSupport::OrderedHash.