Expose configuration for diagnostic output directory

* Generate `directories` configuration in the cc config documents
* Update api control script to create diagnostics directory with the
  appropriate owner