Make startup more async friendly
Make startup more async friendly

When changing modes (testnet vs. mainnet) the daemons may sometimes
start before the config files are written causing them to use
incorrect values.  This commit makes the startup of each cli program
wait until after we have written the config files.  This also fixes a
cases where a totally fresh install will try to start before ANY cli
config file has been written.

There may be more ordering/waiting issues during initial bringup, but
this is a significant improvement over the previous behavior.

oktapodia/decrediton-appveyor-test,oktapodia/decrediton-appveyor-test,decred/decrediton,oktapodia/decrediton-appveyor-test,oktapodia/decrediton-appveyor-test,oktapodia/decrediton-appveyor-test,decred/decrediton,decred/decrediton,decred/decrediton,decred/decrediton,decred/decrediton