Bugfixes related to moving custom modules to lib

Fixed bugs related to moving custom modules to lib
Set log level on socket io