Move parsing events to separate class

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Add basic unit tests for EventParser

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>