Added logging and simple application of client
Added state to client and service tries to reconnect every 3 seconds
Simple shutdown sequence implemented