Added basic http auth support