Complete re-write of logging system using event processing and simplified model.
Extracted log sub-project instead of being part of core.