Minor bug fixes
Save AORTA agent state at Jason program end

Specify parameter logEndState=true in agent parameters to log the end
state in file logs/agentname.txt (very simple, and if agentname contains
illegal characters it will fail).
Example:
worker [aorta="reasoning.aorta", logEndState=true];
will create logs/worker.txt when stopping Jason execution.