CORE-4429: made some refinements to the debugging code.

- removed the blanket logging message in set-permissions
- modified one-user-to-rule-them-all? so that it only accepts one username at a time
- converted log-stack-trace to a macro