Improve whitelist bookkeeping

Set the last_seen timestamp and increase the hit_count when the
whitelist entry triggered.