Custom encoder for latest maps (#1709)
Custom encoder for latest maps (#1709)

* Customer encoder for latest maps

- Cuts out intermediate type
- Should be backwards compatible with existing reports.

* Make it build cleanly

* Review feedback

weaveworks/scope,paulbellamy/scope,paulbellamy/scope,paulbellamy/scope,alban/scope,kinvolk/scope,alban/scope,weaveworks/scope,paulbellamy/scope,kinvolk/scope,weaveworks/scope,kinvolk/scope,alban/scope,weaveworks/scope,paulbellamy/scope,weaveworks/scope,alban/scope,paulbellamy/scope,kinvolk/scope,kinvolk/scope,alban/scope,kinvolk/scope,alban/scope,weaveworks/scope