Fix lots of stuff.

- More in-depth tests
- support custom intervals
- fix update behaviour to not crash
- eliminate test runtime warnings
- remove need for explicit timers in tests
- remove forgotten debugging code
- fix monitored and saved paths (would confuse db_dir and monitored, now
  handled individually)