Fix map_name in JSON plugin and add some fields

Change map to map_name in JSON output
Add a few relevant fields to JSON output
Complete the plugin test
Restore a bit of PEP-8 in test_all and replay