Initial format for queries
Group writes by bucket

Group writes by origin, lock the contents file for that origin, and
proceed to accumulate the Points by bucket label, then async write
them as a group.
Fold over map instead of traversing it
Cleanup request protobuf