Removing the closure because not working on my server
Added support for basic auth
Merge pull request #1 from kalenjordan/kalen_basicAuth

Basic authentication: useful contribution by Kalen Jordan