Align DIGEST-MD5 code with RFC2831

While trying to debug #64 I've found that DIGEST-MD5 does not follow
RFC in some details. Some fields are quoted while grammar and examples
in RFC states that they shouldn't. Additionally, add support for the
realm parameter if server sends it.