Pull events from server, Display polyline path on map, and a few JSON serialization things

I rebased from master so this can be automatically merged.