Ticket 49712 - lib389 CLI tools should return a result code on failures
Description: I've also included the work for 49775 in this patch since
there was a lot of overldap.
For dsctl functions we need to check for True and False in
order to detect an error. For dsconf & dsidm we need to
catch exceptions. Once an error is detected we return error
code (1).
The changes for 49775 was to use the default archive directory
if one was not specified to db2bak, and use the default ldif
location for db2ldif. This how the old tools worked, no
reason not to carry over this convenience. Also the format
used for the file name (Instance name + Date/Time) is the same
as the old cli tools.
Also did some pep8 cleanup.
https://pagure.io/389-ds-base/issue/49712
Reviewed by: spichugi(Thanks!)