Forward port changes from PR #249 to the 2-0-stable branch

This is a forward port of the changes in pull request #249 to the 2-0-stable 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.