Make names of variables and functions consistent in PersistentIndex
PersistentIndex.java uses index and index segment interchangeably to refer to index segments. This creates confusion and inconsistency and affects readability. Change PersistentIndex.java and IndexSegment.java so that all variable and function names are consistent and appropriate.
There are a few suggestions by @pnarayanan on #488 that can be incorporated.
https://github.com/linkedin/ambry/pull/488#discussion_r89040830
Something similar applies to IndexSegment where the concept of segment and index is intermingled in the variable names and would benefit from separating those ideas in the naming.