Fixes for the htpasswd auth plugin
Merge pull request #45 from brenton/remote-user-fixes1

Fixes for the htpasswd auth plugin