The main server code for for the AKS prime project.