Applied many patches

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