* Break up permissions file. * Granular entity permissions * Add "all" entity permission * Lint * Fix types