Support Basic Auth

Works for 2.6 as well now, see travis results.