add rails4 support, teardown rails < 3.1 support

@staugaard @grosser lots of churn here but really the only changes are: ActiveRecord::Associations::Builder::Association.valid_options << :inherit
for rails4+
could just inline these 2 files, they are pretty simple now