Add JSONAPI stream support

Now depends on JSONAPI plugin to build, but it still works fine if that plugin is not installed (I tested).

This streams tps, maxMem and usedMem to JSONAPI each (poll-interval * 5) ticks.