Retrieve Permissions by value

Added a static method to Permissions to search and retrieve a
Permissions object by its string value. This may be needed when external
clients of lib create Permissions passed as plain text.