Add json output.

Quite ruff, need more work. Will try to plug bootstrap datatables to filter, sort logs and also D3.js.