Port scripts to groovy

Campared to MVEL Groovy is faster, more stable, and sandboxed.  It is only
supported in Elasticsearch 1.3 so we can't merge this until 1.3 is live
AND it won't work in mediawiki-vagrant without
I0de89fa9053b8e84aabaa004c6a9f39f21b40435 or production without
Iebd0a94888140a836189580c38ee4666dc5df8b2.

Change-Id: I1289fb52a65e0e6d4cc5fcb8c5931ec5425875bb
Merge "Port scripts to groovy"