started to add protocol stuff

started to add protocol stuff: object register/unregister and related
glue (eg: exception classes for possible erorrs, etc)