Move teleport to client lib.