Fixed missing constructor in HttpTransport. Added method AgentFactory.setEnvironment()