Modify plugins so they generate dicts rather than xml directly, will need a bit of cleanup.
Code cleanup, move result processing, create json generator