save staging tasks in instances.json

this is so a drain script can tell if any are still running

also, trap USR1 and send dea.shutdown. drain script sends this to take
it out of stager/app placement pools.