Changes according to API

also some fixes in login routines about re-spawning in the correct world after logout