Add functional tests for limit, sample, and distinct. Implement limit, sample, distinct, and union in local mode.
Merge pull request #96 from Netflix/local-mode-filter

Implement limit, sample, distinct, and union in local mode