Added locking to replicate and fixed do_schedule error.
* Added speedtest feature to make a rough measure of upload bandwidth
  at the start of a replication then throttle traffic to a percentage
  of that bandwidth

* Completed refactoring to move main() into citoncync-lib

* Bug fixes for log rotation
* rsync-filter added to allow exclusion/inclusion