Adding support for basic auth password hashing

Closes #405