Add rpc.publish_exceptions config setting

To allow for faster debugging during development, set the message
of an internal error to a string formatted version of the exception
that caused it.