Link refactoring
Use versions rather than InvolvedObjects in transactions. Make links less broken and transaction-safe. Add DB cache flush method