add tools.logging
add refresh_token and set-client return client maps
sha1base64 is NOT url-encoded
return client NOT token
url-encoding and refresh token interface implemented