Made TextPatterns automatically simplify themselves when possible.

* Moved TextPattern rewrite logic from explicitly-called
getAppropriatePattern() to implicitly-called rewrite(). Just use the
constructor now instead of getAppropriatePattern().
* Deprecated TextPatternTranslatorQuery as it's not very useful
* QueryTool now prints out the generated SpanQuery as well