Adjust the data structures in the Extensions parser so that the server sets the order of extensions, per the spec.
Move the header-parsing functions into class methods on Extensions.