Added preemptive basic auth
Merge pull request #3 from timf/develop

Added preemptive basic auth