wip. sprawling mess but better integrates ugoira download.