First working prototype of bidirectional synchronization! No support for sending big files yet and a lot of TODOs for error handling.

Short summary:

 - fixed commit bugs and 'broken repository' errors when there are no files in directory
 - fixed incorrect rsync call
 - optimized send procedure to make bigger diffs
 - implemented apply of remote diff