update for new charm.v3 API; update dependencies.tsv
remove unused verifyConstraints function from tests
Merge pull request #59 from rogpeppe/030-update-for-new-charm.v3-api

update for new charm.v3 API

Also update dependencies.tsv appropriately.
Merge pull request #60 from jrwren/v4

add command to start server
fix charmd by adding readConfig function
Merge pull request #61 from rogpeppe/031-fix-charmd

fix charmd by adding readConfig function

The ReadConfig function isn't in the new version of the charmstore package.
Creating as a private function inside charmd until need is demonstrated for
it elsewhere. The readConfig code and test is copied from _old.
internal/v4: implement archive uploading

We don't yet verify bundles against charms in the store.

This required some refactoring of the testing code;
the most important change is AssertJSONCall actually
makes a real HTTP call through a socket, as that
allows us to correctly test the ContentLength logic.
It also gives us greater assurance that the logic
will work over a real HTTP connection. The overhead
seems to be negligible.
internal/charmstore: rename *Upload to Add*WithArchive;
internal/v4: use actual upload mechanism for archive get test
internal/v4: make verifyConstraints more obvious
internal/router: add comment to test
Merge pull request #62 from rogpeppe/025-archive-upload

internal/v4: implement archive uploading

We don't yet verify bundles against charms in the store.

This required some refactoring of the testing code;
the most important change is AssertJSONCall actually
makes a real HTTP call through a socket, as that
allows us to correctly test the ContentLength logic.
It also gives us greater assurance that the logic
will work over a real HTTP connection. The overhead
seems to be negligible.
internal/blobstore: check content hash when uploading
update dependencies.tsv
Merge pull request #63 from rogpeppe/026-archive-upload-check-hash

internal/blobstore: check content hash when uploading

We can now check the content hash with the new method implemented in juju/blobstore.
Fix the meta archive-size response.
Now the size is wrapped in a struct as required by the spec.
Improve archive size tests.
Merge pull request #65 from frankban/fix-archive-size-response

Fix the meta archive-size response.

Now the size is wrapped in a struct as required by the spec.
internal/v4: add hash mismatch test
store: implement serveArchiveFile API.
Improve path handling.