Adds basic http auth support