Fix #19. Removed ngsocket, fixed reconnect after logout->login.