Fix: ocf_exit_reason: implicit format string "%s" for single argument version

Also, don't use the $msg as format string, but via "%s%s" "$cookie" "$msg".
Or, depending on presence of % sequences in $msg,
you'd get different output on stderr and via ha_log.

Without the patch:

	( OCF_ROOT=$PWD dash -c '. heartbeat/ocf-shellfuncs.in ; ocf_exit_reason "0.x% Bugs less"' )
	dash: 372: printf: % B: invalid directive
	ocf-exit-reason:0.x
	( OCF_ROOT=$PWD dash -c '. heartbeat/ocf-shellfuncs.in ; ocf_exit_reason "0.x% bugs less"' )
	ocf-exit-reason:0.xugs less

With this patch:

	( OCF_ROOT=$PWD dash -c '. heartbeat/ocf-shellfuncs.in ; ocf_exit_reason "0.x% Bugs less"' )
	ocf-exit-reason:0.x% Bugs less
	( OCF_ROOT=$PWD dash -c '. heartbeat/ocf-shellfuncs.in ; ocf_exit_reason "0.x% bugs less"' )
	ocf-exit-reason:0.x% bugs less
Fix: ha_log: drop global __ha_log_ignore_stderr_once hack

Use a helper function instead,
which understands --ignore-stderr as first parameter.
Merge pull request #503 from lge/master

Fix ocf_exit_reason wrt. format strings, and get rid of the __ha_log_ignore_stderr_once hack
$((var++)) breaks in the dash shell
Merge pull request #504 from liquidhorse/patch-1

let $((CURRENT_FSID++)) breaks in the dash shell