refactor sync_to_stage

- also allow multiple stage servers and stage server partitioning
- also support a sync script