Cleanup commands exit codes and config saving.
Cleanup tronfig logging, and DRY up some config_parse tests.