Nalexander/bug 799734 bid library

rnewman, how do you feel about reviewing the auth header changes I made to support Basic-Auth, Browser-ID, and MAC?  The first few commits for Bug 799729, that is.