Move resource reference uri building into ResourceReference. Add ResourceReference factory methods