Moved host packet functions into Packet.h/cpp and renamed scratch buffer to data buffer.