WICKET-5635 Provide a way to modify ResourceReferenceRegistry.DefaultResourceReferenceFactory externally to be used by wicket-bootstrap-less

(cherry picked from commit 6154fd6aae702ec5c23d39f6ac3ae9593da4d3b9)