Add automated run

The program should now run automatically when launched.  It checks every 5 minutes for devices, and every four hours dumps a count of devices to stdout and wipes the database anew.