support for preferences tags

This adds support for variable preferences so that they are properly
injected into the config.xml