Adding client side api interaction for registering, sending, and receiving messages. Server side messages now decoding