Add handlers for register and unregister.
Add handlers for call and yield.
Created testing framework for messaging.