Added ability to pass data to sam directly in snmp format and for the client to calculate the packet headers accordingly. Renamed ack_mask to ok_mask as that is a generic mask for successful commands, the same bytes are used for multiple types of successful responses.