Cleanups/moving data out of libpromises

Moving more data and functionality out of libpromises into agents.