Introduced per module MOD_NAME define
Signed-off-by: Oliver Lorenz <olli@olorenz.org>

The macro "MOD_NAME" can now be used to get the current module's name.
core.c: removed hard-coded settings and debug logging.