Add heartbeat to check if backend is alive.

Send a 'ping' request every 2 secs to ensure that the backend is
running.
Use polling instead of recv on the backend_proxy. This was already
implemented for the signaler.
makes sense.
I've added a new commit that kills the backend on quit if it does not respond.