hmmm...the csv values are messed up

The problem is that for a month, say, yoj might get a few different
time periods with a common length for a detector.  Instead of lumping
these into a single output, I am splitting them into mulitples

The fix probably is to sort prior to firing off the couchdb query, so
that I can aggregate by detector properly (accumulate all of the time
periods for a detector, then run the reduce function)

Anyway, slight fixes to test, and to area_query_service