Bill Gates is warning that artificial intelligence could unleash mass unemployment, enable bioterrorism and even slip beyond human control.