Add base logic for syncing

There are many more steps to be added. Also flis_metadata.client is the correct name to be put :)