Added basic HTTP auth support