First Functional version

Only not tested the sending part of relations
(Version with the wbc client before the bulk api)