Add support for :as => :color to input fields.

This is straightforward for Rails 4, but for Rails 3 we have to patch
a color_field helper in to ActionView as it was only introduced in Rails 4.