Functional basic-auth

First fully functional commit on basic-auth fork - also updated heading
info to contain reference to the GPL.