Refactor for more elegant code. Added example of single action usage and grouped action usage. Added authorization based on roles. Updated client with authorization examples.