Anders Behring Breivik has been convicted of terrorism and premeditated murder for bomb and gun attacks that killed 77 people and sentenced to a special prison term that would allow authorities to keep him locked up for as long as he is considered dangerous.