XWIKI-10372: Refactor the Resource API
XWIKI-10374: Add ability to plug in Resource Handlers for new Resource Reference types
* Don't let old actions execute when a Resource Reference Handler has executed