Allow exact hosts in permissions

Fix command levels, cannot execute high level commands from a low alias. Now supports restriction and specific level setting.
Fix a typo causing crash on error.