Polish the php webapp turd a little more.
Buffer log lines to get around issues reading complete lines.

Also, clean up the docs.