support callbacks on clear cache, support custom callbacks

This is a follow up to the PR below. It adds a callback that allows developers to then make cache invalidation calls elsewhere, i.e. Akamai API. etc. Also adds a change to the callbacks concern to allow for custom actions.

https://github.com/spree/spree/pull/5615

Apologies for not getting this in on one PR....