Added AP_DELETED state to Agent Platform life cycle, and made Agent.mainLoop() exit only when the state is AP_DELETED. Agent.doWake() is now synchronized, and so are all kinds of receive operations.
Added AP_DELETED state to Agent Platform life cycle, and made
Agent.mainLoop() exit only when the state is AP_DELETED.
Agent.doWake() is now synchronized, and so are all kinds of receive
operations.

Agent class now has two kinds of message receive operations: 'get
first available message' and 'get first message matching a particular
template'; both kinds come in blocking and nonblocking
flavour. Blocking receives mplementations rely on nonblocking
versions.


ekiwi/jade-mirror,ekiwi/jade-mirror,ekiwi/jade-mirror,ekiwi/jade-mirror