Add :distinct boolean to use DISTINCT counts

This patch enables the ActiveRecord `:distinct` boolean to be passed for models which have multiple rows for a given value. Example: a metric like DAU might be keyed off of login activity, where you do not want to double-count people logging in.

Another enhancement may be to add support for the ActiveRecord `joins` operator.