Tidied up debugging function.
Refactored log and post procedures to be within management closures.
Added debugging function as a parameter of agendaManager closure so that it can be replaced with an empty function and thereby turned off.
Greatly simplified historical sorting for both responses and forwards.
Refactored object copying in process function slightly.
Removed goto functionality from process as it is not needed.
Updated documentation to reflect changes in Beth.
Refactored tst.js slightly to make it easier to read. Still work to do.
Merge branch 'refactor-beth' into develop
Bumped version to 0.4.1.
Merge branch 'release-0.4.1'