Added basic http authentication support