[server] monitor httpserver in controller

monitor pid instead of heartbeat messages
[server] fixed a bug in controller
[server] controller don't remove pidfiles when exit
[server] improve controller

Don't restart process if reading pidfile failed, except with ENOENT