Sync data from capsule to directory app

Code for #168