Reduce dependencies of state tests to other cjet files.
Move notify_fetchers into fetch.c

This allows easier testing of state.c.
Log message if JSON object can't duplicated.
Create error if JSON object can't duplicated.
Ensure an error is returned if a fetcher can't be notified.