[FIX] XQuery: only set result limit if it is not unlimited
[MOD] GUI, Ctrl-H/Ctrl-J: more context-sensitive behavior
[FIX] GUI, Editor: only close bracket if next character is bracket or ws
[MOD] XQuery, Database Module. Closes #870
[ADD] GUI, Editor: Sort lines (Ctrl-U)
Merge branch 'master' into issue873

Conflicts:
	basex-core/src/main/java/org/basex/query/func/FNDb.java