Fixes for #1151

- use timeout delay
- fix access to properties
- throw exception when timeout expires on server so that an error is sent to the client
Better test for #1166
Fix typo causing XPath error
Fix createClerkAdminPermissions()
Test: demoPath() checks for language switch