Allow both django user/pass and access/secret key as auth methods
Refactor authentication

Merge credentials_required and validate_client into one decorator
and set per cidr a boolean to indicate if the credentials are required
or not