More options for :set_permissions, parameter overriding, and better handling of resources.