Adds ability to reference countrecord eventdates in where clauses
Adds HAVING support for CountRecord value fields - where("mycountfield > 1000") translates to HAVING SUM(mycountfield) > 1000 and triggers groupBy() to do the appropriate joins to limit the resultset