Cleanup code and remove legacy stuff since we now completely replaced openseadragon.