Fixed 1/2 of the memory leaks while sending. Added options_delete function to garbage collect the options struct when no longer necessary. Fixed lost pointer from config2json and json_stringify functions