Aspiring terrorist who wanted to behead people gets hefty prison term