add approx_percentile aggregation function.
use moment to automatically set 'pseudonow' parameter if it is not available. set 'now' string from 'pseudonow'.