configurations: update attached configuration INI files with the ENV_ substitution infomation.
In addition show better error message if substitution cannot be made.
branch-permissions: handle cases for revoking regular permissions when branch permissions are set:
- DB cascade delete fliushing branch when repository is deleted
- forbid lowering permissions if it's used for branch
branch-permissions: handle vcs operations and branch permissions.
- use new exceptions for branch permissions
- detect if we need to check permissions
- calculate super-admin the same way as regular users for override capabilities
- added new tests for branch permissions