Trait subsystem + fixes ported from 5.6.x. WARNING - FAILING TESTS NOT IGNORED

The following tests are still failing. More might fail after drools-compiler
MultithreadTest.testSlidingTimeWindows
CepEspTest.testWindowExpireActionDeserialization
CepEspTest.AfterOperatorInCEPQueryTest
CepEspTest.testDuplicateFiring1
CepEspTest.testExpirationAtHighRates
Misc2Test.testLockOnActiveWithModify  
CepEspTest.testLeakingActivationsWithDetachedExpiredNonCancelling