Feature rate limit

Fixes #129

TODO:
- [x] Add tests