Support for migrating permissions

This doesn’t include embargoes or licenses at the moment.