Json api attribute links

Support both link objects and id style links.