Merged from trunk, last commit included was rev 926940; there were a couple of conflicts resolved manually and then tests done to make sure things are still working

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/multitenant20100310@926987 13f79535-47bb-0310-9956-ffa450edef68