Clean up the permissions code, and add a new WildcardPermission class.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>