DB: Query percentiles of event values by period
Created by: efritz
This functionality will be necessary to query the metrics required by RFC 100 once all parties have approved.
This adds an additional method PercentilesPerPeriod
which calculates variable percentiles over a JSON field in the event's argument object.
This PR defines but does not yet use this new method.