implemented rate limiting interface for generator
rate limiter base class
implement rate limiting logic into request handler
accessor for generator params
__DIR__ only available in PHP 5.3+