move MarshalArgs to new package flagutil
set perm grant tickets from env var SRCLIB_TICKET if present
export NewAPIClientWithAuthIfPresent
read API config after flag parsing