Reorganize as an OpenSeadragon plugin