Teenager whose ‘only purpose was to kill’ had accessed extreme material online and planned out what he would do ...