Finished new sync-implementation, notification support finished, implemented basic cleanup for the remote repository