MNG-5640: IT that verifies that lifecycle participant afterSessionEnd is invoked even with build failure

IT based on Igor's MNG-5389, with addition of a failing UT.

Core fix:
https://github.com/apache/maven/pull/18

Issue
http://jira.codehaus.org/browse/MNG-5640