Add logging level control to cli_main

-v will enable verbose logging

--debug_api will dump the backend api calls