Upgrade to new permissions format (Array)

Mostly the same as https://github.com/alphagov/publisher/pull/69