is_allowed helper now defaults resource_type/context_id to the page object's values
Updated is_allowed helper to parse more arguments

0..n actions
0..1 resource_type
0..1 context_id
Tweaked is_allowed for non-Program pages, added is_allowed check for all tree sections
Added permission check for deleting mappings