Add two "special" profiles to org.geoserver.config.GeoServer:
1) The "default" profile. Perhaps better phrased the "global" profile. This will be the configuration profile which is used when an explicit one has not been specified
2) The "local" profile. This profile will be retrieved via a thread local variable.
Add a method with the signature:
The behavior of this method being as follows:
- If a local profile exists, return it
- Otherwise return the default profile
All the methods from org.geoserver.config.GEoServer moved to GeoServerProfile should forward to getActiveProfile().