Add restart to HTTP-API.
Fix pidfile issue.