Adds sync.sh script to resync code and install dependencies.