Test to check if a controller is alive.

To check if controller is up and running, create a socket and try to
connect it to the listening host and port of the controller. If the
controller is dead, then delete the corresponding entry from RFMonitor
instance.

Signed-off-by: Srijan Mishra <srijan23mishra@gmail.com>