Refactoring to work with new persistence container version

We've added a new configuration API that add's a new layer between the XML configuration and the appserver initialisation. This allows us to create configuration API's like the admin UI that works with servlets.