PE-1559 - Fix extended packet handling. Make sure we keep track of
packet sequence IDs and update the response packet appropriately.
Test cases are still under construction...