charmloader: log fails to file

Log all charms and bundles that failed the ingestion process. With err descriptions if possible.
internal/v4: implement changes/published
internal/v4: add changesPublished error tests; disallow limit=0
Merge pull request #104 from rogpeppe/045-changes-published

internal/v4: implement changes/published

As recently added to the specification.
charmload: some refactoring to address review comments
fix imports
cmd/charmload: add TODO for error message on charm store response
Merge pull request #105 from rogpeppe/046-charmload-refactor

charmload: some refactoring to address review comments

We add the capability for charmload to take parameters from the same
config file that charmd uses, splitting the config reading code into a separate
package to enable that.

We make the temp file for the archive inside the existing temp directory
for a slightly simplification of the code.

Various other changes as suggested in review.

Some tests will arrive in the next PR - for now, I've done
some verification on the command line.
lppublish: new package, factored from cmd/charmload
Ingest charms in parallel.

This branch also includes the ability to limit the number of charms/bundles
that charmload tries to publish.

Also fix a time UTC issue causing tests to fail locally.
Merge pull request #106 from rogpeppe/047-lppublish

lppublish: new package, factored from cmd/charmload

This prepares the way for writing some tests for the publish
functionality, taken from the old charm store code.
Done as a separate PR so that code movement is
kept distinct from code changes.

There is no new logic in this branch - all the charmLoader methods
are identical.
Up to 10 default publishers. Make tips processing receive a channel.
Avoid loggign uauthorized errors twice.
Update to the new lpad code organization.
Fix typo in lpad params description.
Merge pull request #107 from frankban/concurrent-ingestion

Ingest charms in parallel.

This branch also includes the ability to limit the number of charms/bundles
that charmload tries to publish.

Also fix a time UTC issue causing tests to fail locally.
lppublish: fix publishing of promulgated charms
Merge pull request #108 from rogpeppe/049-fix-closed-body

lppublish: fix publishing of promulgated charms

The same body can be posted several times, but it was closed after
the first request. This stops that happening.
internal/v4: implement debug/status endpoint
Merge branch 'v4' into log-all-loader-fails-to-file