changed entity_links to be created prior to entity_links_details to reflect foreign key constraint

git-svn-id: svn://svn.openvpms.org/openvpms/release/branches/1.8-dev@5855 9e4fa352-aafb-0310-9071-df624684024b