Add a log displayer to the web interface.

It works pretty well so far. Sorry for the huge commit.