pg_indent'ing all files…

Conflicts:
	version.h
completely avoid usage of strnlen()
avoid usage of snprintf()

We have a nice little abstraction for snprintf with covering the case
that a string is too big for the target buffer – let's use that!
rather big refactoring: use a naming scheme

In the past naming of functions, variables and such didn't really have a
naming scheme. Now they should have.

This is backpatched from master (2.1dev) just because it will be easier
to backpatch other fixes.
removed no-longer used variable
no longer use global variable for SQL query buffer
removed old comment
debian init script and config file documentation fixes
debian init script and config file documentation fixes
debian init script and config file documentation fixes
fix: witness creation and monitoring

While reading node entries from master use a separate PGresult when inserting into witness.
Witness monitoring supplies a null value for 'last_apply_time'.
keep naming consistent
Typo in example command.
Makefile: create bindir before instal + force dir

in order to facilitate building of an rpm I've added an / to the end of the dirs.
adapt makefile for RHEL + RHEL specific files
on init of witness server create db and user to avoid using postgres
re-add comment full debug of log.c
init script: make status call return proper return code
Update README.rst

Fixing a grammar mistake.
Typo fixes and minor wording tweaks for clarity