Add basic rate limiting.
Revert rate limiter from fixed to sliding window.
Remove unused import.