add assertPermission method
add first draft of ressourcePlugin
add authorizedToJSON
[ressource] recursively serialize (authorized) to JSON
clean rewrite of authorizedToJSON