Add Basic Auth support
Use glog instead of log consistently