Adds support for digest authentication header, solves #2