Added basic authentication / htaccess support.