Add postgresql prepared queries and stop relying on string formatting
for sql parameter passing
Merge pull request #1507 from idlewan/postgresql

Add postgresql prepared queries
Avoid unnecessary #include triggered by importc vars.

When a C variable or macro is imported via an {.importc.} var or
let statement, but no definition is needed and the variable does
not have an initializer part, then there is also no need to generate
an #include for the associated header until and unless the variable
is actually used. The header is already generated upon use, but
unnecessarily also when the variable is defined.

This is an issue with the posix module in particular, where a lot
of unnecessary header files are being included because relevant
constants are defined via importc vars, and those header files
may not even be available on a given system.

This patch omits the generation of the #include directive for those
definitions where they aren't needed.
Merge pull request #1534 from rbehrends/fix-importc-var

Avoid unnecessary #include triggered by importc vars.
Fix permissions for createDir() on Unix systems.

Permissions were set to 0o711 by default; they should be 0o777, with
umask being responsible for restricting permissions further.
Merge pull request #1541 from rbehrends/mkdir-perms

Fix permissions for createDir() on Unix systems.
Improve setjmp()/longjmp() performance.

Exception handling for the C backend used setjmp()/longjmp()
unconditionally. However, on POSIX systems, these functions save and
restore the signal mask, adding considerable overhead to exception
handling, even where no exceptions are involved. The compiler and
library now try to use either _setjmp()/_longjmp() or
sigsetjmp()/siglongjmp() where possible, marked by the defines
"nimRawSetjmp" and "nimSigSetjmp", respectively. The define
"nimStdSetjmp" can be used to revert to setjmp()/longjmp() instead.
Use _setjmp()/_longjmp() only on BSD-like systems for now.
Disable git hashing in the version command
Updated Version Number
Fixes #1529
Merge pull request #1549 from Varriount/fix-1529

Fixes #1529
Merge pull request #1545 from rbehrends/setjmp-perf

Improve setjmp()/longjmp() performance.
updated some tests
Merge branch 'devel' of https://github.com/Araq/Nimrod into bigbreak

Conflicts:
	lib/impure/db_postgres.nim
	lib/pure/os.nim
	lib/wrappers/postgres.nim
docgen should work again