Added a generic foreign key option

This allows the log item to linked to other objects