Merging refactored configuration API back into master

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.