switched entity manager to open and close for each call
* went through all manager classes and moved EM calls
* added a bit to JPA helper
* added shutdown listener to close EM factory