Switch to using tokenbucket library for rate-limiting