Convert past answers script to a daemon.

In this form it runs continuously until interrupted.

Also refactored it a bit so it's easier to read.