expose server version to xlat

expose server version to slat (so we can print it out in e.g. line log
with %v).

I note that a few expansions are present but are in variables.rst -
e.g.  %C, %V and %Z
updated TERENA dictionary

update of TERENA dictionary
Update queries.conf
Use newer style alternation in oracle queries
Update variables.rst
Merge pull request #565 from alanbuxey/master

Update variables.rst - document the Version change
Revert "CID 1187991"

Until we know more about the possible side effects

This reverts commit 0d0e29676da0e451845ca59b3a0dab14b0cdb493.
Correct length returned by vp_prints_value_json
Display truncated format error marker, instead of no error marker at all
Fixup all lingering instances of old style expansion
Swap defined(sun) for defined(__sun) which is apparently defined in more cases
Fix whitespace
connect_uri can now be NULL

Since the default was removed
Include version in user agent string

Print the headers were adding

Fix whitespace
Extraneous comma
Remove extraneous format marker *sigh*
Dictionary names begin with uppercase letters
use FR_TOKEN, not int.  Better error message for parse errors

	case "foo {

is a syntax error.  It shouldn't print a complaint about an
invalid token.
If there's no dictionary entry, it's a literal.

And use the same literal code as the other cases
set fr_strerror() if the reference isn't an attribute