Support Rails 4.x.
Version bump to 0.4.0.