Add generated keys to in-memory map

When a new key is generated, it happens after the secring has been read
into memory.  We therfore need to add it to the in-memory map in
addition to publishing it to files.
Add a bool to determine if stats have been imported
Add packet ID inspection

The IDlog library keeps track of packet ID's and prevents replay
attacks.