Added subcommand permission checks.
Only available subcommands are listed.

Fixes #12.