Add Rewriter.
Merge pull request #1258 from influxdb/rewrite

Add Rewriter