Added got_data_raw to protocol; added code to accept callback_raw and
callback_error, and heartbeat parameters.