The teenager charged with the murders of three young girls at a dance class in Southport is to be prosecuted for terror offences.