automod: extracting some packages, and concurrency safety (#464)
A few minor hopefully-advancements to the automod/hepa packages:
- `countstore` is now extracted as a package.
- Synchronization primitives are added to MemCountStore. This fixes
crashes when running `hepa` without the use of Redis.
- Additional testing, to make sure that MemCountStore gets enough
exercise that the race detector has something to work on in tests.
- Attempted to sneak in some docs along the way!
authored by