[FIX] WebDAV: fixed authentication and authorization; fixed formatting; code clean-up