add Packets.Writer, fix bugs, handle login packet, arf