Formated the code
Added a test for the mark() method
Fix for DIRMINA-943
Applied many patches

Merge branch 'trunk' of https://git-wip-us.apache.org/repos/asf/mina into trunk