Adds error-logs-controller.js which I forgot yesterday.
Fixes PermissionUtils.
Merge branch '2.1M2' into qa