JGRP-1785 TOA, inconsistent message delivery

* Synchronization problem allowed messages to be deliver while messages
with smaller sequence number were pending
* Added simple functional tests for TOA
Merge pull request #126 from pruivo/JGRP-1785

JGRP-1785 TOA, inconsistent message delivery