Re-factored server's main() into smaller routines in init.c.