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.
IIUC this is exactly what the code does. HandlerConfig is not the same structure used to deserialize the charmd configuration, and only includes stuff relevant for handlers (e.g. the mondo URL and the API address is not there).