Adds callback for defining own comparator ID. Fixes #3

Had a stab at implementing callback support for ID as I need it for a project (to ratelimit based on user instead of ip). Hope something like this works. Let me know what you think.