Relax elasticsearch script sandbox some more

This allows taking the edit distance between two strings.  This should
be useful for the Translate extension.

Change-Id: Icf6128cf4e4dfab2dbddf7bd5858d083c27968eb