[bug 1018728] Add translation auditing

This adds a general-purpose logging system and then uses that to log
translation infrastructure-related events so we have more clarity as to
the specifics of what's going on.

This tweaks some of the translation infrastructure to make it easier to
log odd results from the language guesser.

Note that the infrastructure is designed to make it easy to add additional
metadata. The admin has a view that lets you see some things, but the
expectation for now is that someone will get a db dump and write a
script that manipulates the data to see whatever it is they're looking
for. We expect to adjust the infrastructure going forward as we figure out
what the data needs are.
[bug 1026019] Rework bigram generation

This reworks the tokenizing part of bigram generation so that it's no
longer (ab)using Elasticsearch to do the work. Now it does its own
tokenizing.

I also added some really rough tests to make sure the new tokenizing
wasn't really horrible. The tests run roughly the same before and after
the code changes. The new code handles the "add-on" case better--the old
code broke that into "add" and "on" and then ditched "on".