Check upload policy every N messages / seconds

Reusing `secor.messages.per.second` which is used for rate limiting, but
we’re currently setting it to a very large number to avoid being rate
limited at all, so we might as well use it for this as well.
Merge branch 'configurable-msgs-per-second' into staging