Implement handlers with classes, add nodejs events and fisrt part of map system