codelists with links can now be versioned.

more generally, links can be stored in the same transaction as their
targets, just after.
Merge branch 'dev' of https://github.com/cotrix/cotrixrep.git into dev