First cut of document locking (not working yet)
Merge branch 'master' of https://github.com/tcsoft/xpb2013