refactor: Move sync service to the app scripts and make it generic to sync every resource possible