add a RecordReference class
add RecordReference in registry
add referential_id on tasks and move them in their own module