added reconnection logic for sapi connection to resync every 6 hours.
Merge branch 'master' of github.com:dalekio/collector