Move Malloc() to wol.[ch]
Refactor prepare_payload()

I realized prepare_payload used some redundant code (Malloc). Also, that prepare_payload shouldnt be allocating space with Malloc. It should only set the payload, which is what set_payload() odes. So, prepare_payload() is irrelevant.