extracted api base url
added possibility to save accessToken to CliDemo
basic http error analysis