Implented compression into the rest of the AppLayer class.