lib: add a GenericCouopledModel

GenericCouopledModel can read a TGF graph format to build a generic
coupled model ie. it adds children and connections between them.