Address comments on pull request

* fix optimization of LEFT, RIGHT, and OUTER joins
* fix optimization of UNION
* fix a bunch of stylistic issues
* add more tests
Change filter operator and expression compiler to handle pages with zero channels
Run all AbstractTestQueries over sampled data with a weight of 1