Added proc interface for monitor. Now monitor runs as daemon.