Added function to remove action from a rule.
Updated comment.
Added function to install default permissions rules for a component.
Cleanups.