Link in the services module.

Move some of the configurations from xml into java config for the services module.
The new service config class is used in the web mode.