Incorporated hdlc_frame into the sender

The user now only enters in the payload that needs to be sent and not
the entire frame. (The frame will be generated by hdlc_frame)