refactored client registration for isolating LWM2M registry logic from CoAP resource tree