Add cliapp documentation about plugin and hook systems, and an example program for them.