Add P+R, K+R, and B+R modes to Leaflet client
Add deduplicator to graph and make it serializable