Lucene47 SimpleIndex

Cleaned up code, added tests, squashed commits.