rails 4 compatibility

`config.assets.enabled` is gone in rails 4. That means the conditional sprockets engine registration will never get called, because `config.assets.enabled` is always `nil` (by default). This PR replaces this check with rails 4 version check.

I have also swapped out registration on `Sprockets` with `app.assets`. Don't know why, but the former is not working for me.