dialect: Add Dialect interface
Add dialect.Dialect argument to Sync and Diff