Write, index and read performance test modules for new Core Persistence API and old Entity Manager API.
Minor fixes, clean-ups.