Add constant folding.
Add ability to fold without now().
Merge pull request #1210 from influxdb/planner

Add constant folding.