Introduced ManyToOne relation class again.
Some refactoring to make migration of existing projects possible.
Added a maintenance command for migration: 'migrateRelationships'.
Some bug fixes in the rendering code.
Removed abstract link classes, we should try to use ResourceLink for all LINK relationships in the future.