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.
Well the way I see decorators is exactly for things like this. We don't want to repeat the same logic again and again and so we abstract out the generic part in a decorator form.
More below.