Usain Bolt won the men's 100 metres gold medal at the World Championships in Beijing, beating Justin Gatlin.