Abstracted out loading of openjp2, openjpeg libraries.  #138

That much was common to both load_openjp2 and load_openjpeg.  Reduces
number of different moving parts.