Fix ID element for cases where the resource we are sending a response for is not the resource requested.
Add profile attribute to entity self link.