Fixes to persistence.xml
Added lazy load to connection factories, to make sure we only try to connect to JPA/Mongo when used
Merge pull request #518 from stianst/master

Lazy load connections
merge