Added expected inbound payload and outbound payload
Define handle_outbound_message(), use endpoints.