better rescan behavior

rescan deletes mtimes in db instead of relying on a flag in memory.
This way if you kill the server in the middle of a rescan, it picks up
where it left off.

closes #269