Create helpers for logging

- create sharebox_log function
- use sharebox_log instead of fprintf in main program and monitor
- tweak handling file creation/modification/deletion
- add way to unwatch a path, make watched paths a doubly linked list
- tweak monitor callback
Update to work with libgit2 0.18.0