Add basic HTTP authentication to archive POST/DELETE.

The credentials can be stored in the charmd configuration file.
Abstract out the authentication logic in a decorator.
Created a card for the DoRequest refactoring.
Ah, thanks, you're right. It probably should not be defined inside params then, but inside internal/charmstore, as that's where the various handler types are defined.