Improved handling for entity manager and ability to persist JClass on the fly. Improved control over logging.