Add basic http auth to rpc server.