City of Cape Town sets conditions for rail takeover