Before his term ends on January 20, Barack Obama is rushing to leave as few detainees as possible at the Guantanamo Bay prison.