WIP creating news classes to move functionality
refurbishing code to move functionality into Link and LinkRepo classes