add tools to protect data integrity+issues

There are data integrity problems that we know exist, but don't know yet how they're being introduced such that we can prevent them - e.g. some cards not being indexed. One possible solution would be to run cleanup code periodically (and offer a way for admins to trigger it via web?).