[trunk] First step in moving JPIP code out of openjp2