Building a robust data synchronization framework with Rails