get rid of Agent.setObserverVariable

part of slimming down agent.Agent
convert agent.Agent to Scala