Massive Refactoring + IoSocket Listeners and Emmiters implemented.