LPS-49153 AlloyPermission source formatting

Differentiate between 'controller/action' and 'actionId'.
Improve _formatActionId method.
LPS-49153 Make AlloyPermission parameters more flexible

Use 'name' and 'primKey' to match the parameter names in
PermissionChecker.
Pass in 'groupId' and 'primKey' separately to allow for non-portlet
resources to be checked against.
LPS-49153 Improve AlloyPermission to handle model-resource permissions
LPS-49153 Source formatting
LPS-49153 SF