Re-implemented support for default preferences specified in config.xml, and added functional tests to ensure it works.

git-svn-id: https://svn.apache.org/repos/asf/wookie/trunk@1576042 13f79535-47bb-0310-9956-ffa450edef68