Invert control of link model to webAPI init
add linkController unit tests