Global Basic Authentication

Refactored Basic Authentication to be global for the whole dashboard, and use the more specific environment variables take from the concept.