Rebuilt meshnode to enable handlers and thread safety