Added print_debug_msg in Utils. Continued work on NegotiatePayload, but
going to superclass it properly to stop copying pasta so much.