Proc based threshold

I added support for Proc based thresholds, similar to the :key option. I needed this for limiting external API calls, where every user has a different per/second rate limit set by the API vendor.