BZ-1098226 - Inaccessible JBoss EWS container after a few REST requests - change to be included in dependent scope beans but ensures only single instance of EntityManagerFactory is created

(cherry picked from commit efe91f62d9edcb9b2eab6b9341d48dd88034b036)