Nicholas Prosper spent more than a year planning to kill his family and carry out a mass shooting at his former primary school.