query.php: Refactor ConditionLogic constant names

Issue #208.
query.php: Implement StringMatchCondition

Issue #208.
query.php: Implement Select class

Issue #208.
query.php: Implement CompositeCondition class

Issue #208.
Begin implementation of PipQueryBuilder

Issue #208.