Integrating InMemory Persistence example to library. Some moves of packages, classes.