Library with shared functionality for the XDI Connect protocol