Merge pull request #655 from JensErat/locking

[ADD] Core, Locking: Command tests, fixups and locking XQuery option
[MIN] cleanups
[MIN] Source -> Clean Up...
[MIN] XQuery, read/write lock options: trim leading and trailing spaces
[FIX] XQuery, QT3TS: cbclNormalizedString002
[FIX] XQuery, QT3TS: cbclWild002
[FIX] XQuery, QT3TS: XQST00701
[MOD] Switched to 7.7 beta
[MOD] XQuery, XQUnit: error codes revised
[FIX] XQuery, Crypto and Prof Module
[FIX] XQuery, QT3TS: XQST0046_01
[MIN] cleanups
[FIX] XQuery, K2-Serialization-5 (output of hex entities)
[MOD] XQuery, VarScope: duplicate check removed (saves time)
[FIX] XQuery, format-integer(): updated to latest version of the spec.
[FIX] XQuery, cbcl-typeswitch-003; format-number(): sign handling
[MIN] cleanups
[MOD] XQuery, format-number: correct handling of numbers with exponents
[MIN] XQuery: function signatures reordered
[ADD] XQuery, Streaming Module: unify handling of streamable items