Abstract rate limiter for nodejs