fix marshaling of bool flags
set perm grant tickets from env var SRCLIB_TICKET if present
export NewAPIClientWithAuthIfPresent
read API config after flag parsing