This implements changes discussed in #40. Plugin has a quite complex hierarchy of internal tasks, which need to pass current scope around all the time. However that was already being done for some parts, so this cleaned it up a bit. In future we might want to use the passed around scope in all (most?) tasks and settings on which our tasks depend, but I haven't done that yet, this should be enough for now.
This implements changes discussed in #40. Plugin has a quite complex hierarchy of internal tasks, which need to pass current scope around all the time. However that was already being done for some parts, so this cleaned it up a bit. In future we might want to use the passed around scope in all (most?) tasks and settings on which our tasks depend, but I haven't done that yet, this should be enough for now.