Added basic auth

Adds basic authentication for sites that require it (protected private sites).