Is there a way to start a script on the publisher when synchronization starts?
There isn't a built-in or easy way to do this with Web Synchronization.  You're best bet is to programmatically monitor Merge Agent sessions at the Publisher/Distributor using sp_replmonitorhelpmergesession and sp_replmonitorhelpmergesessiondetail.  You can script this out and poll on a schedule.