An Integrated Reasoning and Learning Environment for WWW Based Software Agents for Electronic Commerce