misc code cleanup, trying to move all non-core functionality from ccnl-core.c to the respective modules