BZ 1130341 - Agent can be stuck waiting for startup

The agent can block forever in a JBoss remoting callback if it receives a
message that triggers a wait on the latch. Change to wait a finite amount of
time, then throw an exception.

Also, clean up the CommandProcessor to use CopyOnWriteArrayList, no need to
copy lists like this.
For timeout at startup, use 30 seconds (fixed)
Use NotProcessedException to indicate startup latch timed out
Merge pull request #141 from genman/bug/1130341

BZ 1130341 - Agent can be stuck waiting for startup