Work in flag parsing and log

Can't get log to write to file
No log files
Convert client demo to a jquery plugin
fmt