Fix equals() in Day -> fixes the issue with displaying tasks for some months

Fixes the issue for e.g. March 2014. Problem was that the Day class changed its purpose and structure from the initial and the equals() method did not get updated. 

Also added simple test into backend to ensure that correct number of days is returned from query even for large date ranges.