Small refactors
Merge pull request #457 from anserran/smallrefactors

Small refactors
Use foreach instead of iterators for Model iteration
 * Model.getIndex() is now Model.listNamedEntities()
 * it is an Iterable instead of an Iterator
 * updated dependencies
Fix index (closes #362)  * now uses Lucene 3.6.2 + lucene-analyzers  * search is full-substring instead of prefix-only  * entire object hierarchy is indexed