Add ability to use Basic Auth when running PHP in CGI mode in Apache

When PHP is running under CGI mode in Apache, the basic authentication variables ```$_SERVER['PHP_AUTH_USER']``` and ```$_SERVER['PHP_AUTH_PW']``` do not get populated.
This workaround sets ```$_SERVER['HTTP_AUTHORIZATION']``` which contains ```PHP_AUTH_USER``` and ```PHP_AUTH_PW``` in a base64 encoded string that parsed by ```security/BasicAuth.php```

Closes #1432