WikiLeaks founder Julian Assange has been sentenced to time already served in prison. He left the court free after pleading guilty to one charge of espionage.