Better name for bzrDigestKey.
Exclude existing entities in a separate function.
Better code organization and improve digest logging.
Avoid setting the request content length where not required.
Improve doCharmStoreRequest documentation.