Merge pull request #215 from bendiy/master

Fix syncUser crash.
Merge pull request #216 from bendiy/master

Fix broken GlobalPrivs to session
Make sure a matching org was found.
Merge branch 'xtuple'