general: output/log reorganization and cleanup.

general: better client support.

web: nearly complete rewrite of web client.