Add bin/add_message_ids script; allow message.namespace_id to be nullable.