Refactor flood agents

Refactor flood agents to separate classes.
Refactor statistics counters.