Backport Rails 3.2 support

sprockets-rails 3.x is only compatible with Rails 4.x and greater.

It shouldn't be to hard to backport the 3.2 shims to get this working again.

/cc @charliesome