Initial implementation of getBasicAuth, a *Context helper method

Fixed implementation

Added extra error checking
Added BasicAuth tests
Merge pull request #147 from pbdeuchler/basic-auth-rebase

Basic auth rebase