Fixed (?) a bug. Something I was doing was breaking the by_date map/reduce. After hours of debugging, I cannot figure out what it was. by_date is getting an 'Unexpected end of input' error. The datum map/reduce seems to be working, but more debugging is necessary TODO.