Update to Lucene 4.10.1 and fix unit tests

Update to Lucene 4.10.1
Closes #79

[TEST] Move tests scripts to Groovy
Closes #71
If you debug the test, you'll see that updating other documents than the one just added cause errors (DocumentMissingException, VersionConflictException). Then, the expected number is wrong and consequently the tests will fail.