Adding functionality for wildcard permissions (ending in '*'). Fixes #123.

Signed-off-by: Ben Corlett <bencorlett@me.com>