split libclient into two peices,  shared lowlevel functionality.

common keeps 


see: http://epad.dataone.org/cicore-interfaces-packages