change the registration part to use the cdmi interface

it no longer has any direct interaction with irods, so it can
1. be used with different backends
2. has fewer dependencies