Raif Badawi was sentenced to 10 years in prison and 1,000 lashes for setting up a website that championed free speech in the autocratic kingdom. Ian Black analyses his work