Issues 4 and 9 resolved: use of boolean instead of Boolean

Issue 4: Optimization: replace Func<Boolean> with a special interface
Issue 9: Use boolean instead of Boolean when possible
Performance improvement in getPermittedTriggers.
Version upgraded to 2.4.0