Seen history saved and uses less memory

Seen history is now saved in a file "seen.hst" during down time.
Only updated if gracefully shutdown.