Move logviewer into lib/components. More tests.