Added a linkable logic module
The linkable logic module is used to signal the fact that the scope
of an entity can be any linkable.
Patch by: Sverre Rabbelier
Fix scope lookup for unscoped entities
As scope_logic is now always set (since r1250), we need to check if
it is None, rather than check if it exists.
Patch by: Sverre Rabbelier