Update to Lucene 4.10.1 and elasticsearch 1.4.0.Beta1

Also replace deprecated code in Lucene.

Closes #28.

(cherry picked from commit a6114eb)