Make reading of the ZooKeeper configuration file more resilient.

This is to fix the following problem:

  Traceback (most recent call last):
    File "zktop.py", line 351, in <module>
      ui = Main(get_zk_servers(options.configfile))
    File "zktop.py", line 341, in get_zk_servers
      config = read_zk_config(options.configfile)
    File "zktop.py", line 337, in read_zk_config
      return config
  UnboundLocalError: local variable 'config' referenced before assignment

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Make resetting remote ZooKeeper server stats more resilient.

This is to address the following problem:

  Traceback (most recent call last):
    File "/usr/lib/zktop/zktop.py", line 361, in <module>
      curses.wrapper(ui.show_ui)
    File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
      return func(stdscr, *args, **kwds)
    File "/usr/lib/zktop/zktop.py", line 297, in show_ui
      [reset_server_stats(server) for server in self.servers]
    File "/usr/lib/zktop/zktop.py", line 141, in reset_server_stats
      send_cmd(host, port, "srst\n")
    File "/usr/lib/zktop/zktop.py", line 110, in send_cmd
      s.connect((host, int(port)))
    File "<string>", line 1, in connect
  socket.error: [Errno 111] Connection refused

Which occurs when a ZooKeeper server is not available.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Add ZooKeeper server connection timeout.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Merge branch 'fix-config-file-reading'
Merge branch 'fix-reset-server-stats'
Merge branch 'add-connection-timeout'