Implemented the where command and fixed some precedence bugs in the process.
Merge pull request #39 from salspaugh/where

Merge where command