Configurability for eventlib to raise validation errors

This is very useful for testing, as now you can set a environment variable
such that when events do not have the neccessary fields the tests will fail
without having to mock and check the log calls