Add time range extraction and group by support to execution engine.
Code review fixes.
Add time range crossover test.
Merge pull request #1232 from influxdb/planner

Add time range extraction and interval grouping support to execution engine.