Big changes to support new #btsync 1.4.x