Base class rearch

Moving list<link> and list<action> to the base class with the helper
method to extract ID's...