Resolve single links
Refactored reference and linking resolution in resource
Test for multi-links