Globalised some variables, created new global to track child PID.
Ensure that health check duration doesn't exceed advert interval.

Run health check command, and sleep for CMD_TIMEOUT seconds. If, after that
time, main process has not received SIGCHLD, send SIGKILL to child process
group.

Closes #1