Changing the sync function no longer re-runs it on all docs in the db

Instead it logs a message on startup.
This is part of making the re-sync optional, since it can take a long
time. The next part will be to add an admin API to re-sync.
For #116
Added /db/_resync admin API to re-run sync fn; also fixed unit tests

Fixes #116