Minor clean up
Remove updating thread state
Remove updating thread state
Refactor autosync service
Major refactor to classes that handles sync and task checking
Switched task check to using the new sync implementation
Major refactor to task services