Add Basic HTTP authentication support to the XML-RPC library

(based on PR #1716)