server/scmapi.c: Use __func__ macro instead of SUBR_NAME.
scmapi.c: Move host updating to a separate function.

* server/scmapi.c (scm_update_host): Move host updating to a separate
  function.
  (update_host): New function.
Improve the LazyCat server.

Improve the LazyCat server.  Make the server work as a daemon and
split UI and the server part.  Make UI communicate with the server
through the well-defined protocol, so it become more
straightforward and flexible.  Improve the module hierarchy.  Move
all UI-related sources to ui directory.  Add a CLI for LazyCat.

* scheme/config.scm, scheme/diff.scm, scheme/host.scm,
  scheme/host-list.scm, scheme/logger.scm: Move to server/scm.
* lazycat-gtk.sh: Move to the ui directory.  Rename to
  lazycat-gtk.
* scheme/lazy-gtk-cat.scm: Move to ui/gtk.  Move all GTK-related
  stuff to ui/gtk.
* server/scm/lazycatd.scm: New file.
* ui/lc: New file.
* ui/cli/pretty-format.scm: New file.
* server/scm/protocol.scm: New file.
* server/server.c: Don't start the Guile shell -- run the lazycatd
  instead.
ui/lc (lazycat-set): Fix a message format.
Don't do any formatting of outputs on the server side.

* server/scm/lazycatd.scm (lazycat-exec, lazycat-diff): Send
  results to a client as a list instead of squashing all in a
  string.  Add comments.
* ui/lc (lazycat-exec, lazycat-diff): Improve.
* ui/cli/pretty-format.scm (format-output, format-output-list)
  (format-diff): New functions.
* server/scmapi.c (scm_send_msg): Throw an exception on error.
  (lazycat_throw): New function.
* server/scm/host.scm (host-send-message): Catch an exception.
Fix two bugs in handling "diff --abort" command.

* ui/lc: Fix a bug in handling "diff --abort" command.
* server/scm/lazycatd.scm: Likewise.
lazycatd.scm (main-loop): Improve.

* server/scm/lazycatd.scm: Don't parse arguments of commands in
  main-loop -- do it in a command handler instead.  Improve error
  handling.
  (lazycat-exec): New generic method.
  (lazycat-throw): New procedure.
lazycatd.scm (lazycat-set): Fix a bug.

* server/scm/lazycatd.scm (lazycat-set): Fix a bug in arguments
  parsing.
lazy-gtk-cat.scm: Fix broken exec and diff command handler.

* ui/gtk/lazy-gtk-cat.scm (lazycat-send-message): Fix broken exec
  and diff command handler.
  (lazycat-set-master-host): Fix malformed message.
* ui/gtk/output-view.scm (output-view-format)
  (output-view-format-list, output-view-format-diff): New methods.
Automate LazyCat installation with autotools.

* Makefile.am: Improve.
* Makefile.in: Update.
* server/server.c, server/scm/config.scm, server/scm/diff.scm,
  server/scm/host-list.scm, server/scm/host.scm,
  server/scm/lazycatd.scm, server/scm/logger.scm,
  server/scm/main.scm, server/scm/protocol.scm,
  ui/gtk/lazy-gtk-cat.scm: Remove "scm" from a module path.  All
  dependent modules updated.
* ui/lc: Rename to ui/lc.scm.
* ui/lazycat-gtk: Rename to ui/lazycat-gtk.scm.
Makefile.am: Set the executable bit for lazycat-daemon.

* Makefile.am: Set the executable bit for lazycat-daemon after
  producing it.
* Makefile.in: Update.
lazycatd.scm: Fix an unbound variable error.

* server/scm/lazycatd.scm (initialize): Fix an unbound variable
  error.
ui/lc.scm: Update comments.

* ui/lc.scm: Update file commentary.  Fix tautology in comments.
Improve usage of the Guile module system.

* Makefile.am: Replace AM_CPPFLAGS with AM_CFLAGS.  Use datadir as
  GUILE_LOAD_PATH.  Rename lazycatd to lazycat-daemon.  Cleanup.
* Makefile.in: Update.
* server/server.c: Use setenv call to set GUILE_LOAD_PATH.
* server/scm/host-list.scm, server/scm/lazycatd.scm,
  server/scm/main.scm, ui/lazycat-gtk.scm, ui/lc.scm: Remove
  load-from-path calls.
lazycatd.scm: Fix a bug.

* server/scm/lazycatd.scm (lazycat-add): Fix a bug.
ui/gtk/lazy-gtk-cat.scm: Remove load-from-path calls.
ui/lazycat-gtk.scm: Fix the header comment.
host-list.scm (host-list-add-host): Use keywords for arguments.

* server/scm/host-list.scm (host-list-add-host): Use keywords for
  passing arguments into the procedure.  All callers updated.
* server/scm/lazycatd.scm (lazycat-add): Update.
* server/scm/utils.scm: New file.
server/scm/utils.scm: Fix a comment.
server/scmapi.c: Remove deprecated SCM_STRINGP macro calls.

* server/scmapi.c (scm_send_msg, scm_add_host, scm_update_host):
  Replace deprecated SCM_STRINGP with scm_is_string.