Save state with search read replica

This means we don't need a lock and can stop blocking for 10s of seconds
during write.
Correct actions for alerts with ignoreUnknown

Instead of prevent unknowns, this feature instead prevents them from
appearing on the dashboard.

fixes #282