Forward port changes from PR #249 to the master branch

This is a forward port of the changes in pull request #249 to the master branch.  PR #249 enabled sunspot_rails users to replace the after_save and after_destroy hooks for Sunspot actions with after_commit actions via configuration.

Failure to forward port this functionality appears to have been an oversight.