Close index readers

o IndexReaders now uses ResourceIter*
o Core API fixes to use ResourceIter* everywhere
o Documents correct ResourceIter* use in Javadoc and embedded tutorial