FIX Refactored getMemberPermissions() to use Permission::get_codes().
MINOR Changed to match SS coding-standards + removed redundant comments.
Added missing _config.php so this can be run as a module locally.