Updates to state were not getting written to state.json

Due to a bug in the way config.sync_through flag got set no
updates to the state were getting written to file. This is a pretty
serious bug in this version and results in repeated synching.

This sort of bug should have been caught in automated testing ... Hm
Merge branch 'master' of github.com:skarra/ASynK