def write_state(path, value, options = {})
      create_path(path, options.merge(:initial_value => value))
      @zk.set(path, value)
    end
def write_state(path, value, options = {})
      create_path(path, options.merge(:initial_value => value))
      @zk.set(path, value)
    end
Writes state to a particular znode path.

 @param [String] path the znode path that should be written to
 @param [String] value the value to write to the znode
 @param [Hash] options the default options to be used when creating the node
 @note the path will be created if it doesn't exist