Move serverMode flag from log.c to server.c
Improve server start/stop logic

Unlink server pidfile on orderly exit

Only call serverCleanUp() in server process, not in "start" command
(fixes race condition)