classic-ui: fixed Generated HTML code partly invalid #3608

refs: #3608

this is a huge commit. hope html code now looks better and
is valid.

this will stay in another branch to make shure it's not
causing any trouble

Conflicts:
	Changelog
	cgi/cgiutils.c
	cgi/extinfo.c
	cgi/histogram.c
	cgi/status.c
	cgi/trends.c
	html/main.html
classic-ui: fixed statusmap popups
classic-ui: fixed more invalid html code #3608

mostly substituted "&" with "&amp;" in urls

refs: #3608
nebmods: fix multiple modules sharing same symbols not receiving callback data

once dlopen() loads modules with the same name, it will make sure to
register only the first symbols, and not overriding the coming ones from
more modules of the same binary.

this is bad, as e.g. multiple idomod's will try to register the same
callback function symbols, and only the first one wins then. this is the
reason why only the first instance_name is getting populated in idoutils
database then too.

the initial handshake of ido2db with idomod only happens for the reason
of calling the nebmodule_init() function symbol (from the first module)
with different arguments, passed by the core. each module should have at
least a different instance_name defined in its idomod.cfg, so the init
function will be called with those, doing a handshake (and insert into
icinga_instances table then) then. but afterwards, no data gets received
from the callbacks not having such a diversity (how should the core then
know anyways, it's a _callback_ function called only once from symbol
space!).

basically, the root issue is an omd patch living for more than 2 years
now, but the old behaviour is now restored with this fix (plus adding a
debug idea stolen from Andreas Ericsson, thanks).
alongside fixing this, the solution is rather simple - make a temp copy
of the binary to some random name, and let dlopen actually load that
into memory. then all the registered function symbols will remain module
based and everything else works with the callbacks and so on.

as this is a behavioural change, it should get a note in Changelog once
merged into release trees.

refs #4199
Merge branch 'fix/dlopen-mult-sym-4199' into next
Merge branch 'fix/invalid-html-code-3608' into next

Conflicts:
	Changelog
update Changelog for #4199

refs #4199
core: fixed gcc compiler warnings about ununsed vars #3984

fixed for core part and ido part

whatthecommit: this doesn't really make things faster, but I tried

refs: #3984

Conflicts:
	base/nebmods.c
	base/notifications.c
	module/idoutils/src/dbqueries.c
classic-ui: cleand up gcc error messages, also added -Wno-unused-result to gcc options #3984

* removed useless "dummy" var from cgis
* added "-Wno-unused-result" gcc option global to all systems supportiong -Wall
* removed some unused vars (gcc 4.6)

refs: #3984

Conflicts:
	configure
	configure.in
classic-ui: fixed left over gcc warnings for now #3984

these need further investigation.

whatthecommit: Same as last commit with changes

refs: #3984
Added Changelog entry for #3984

refs: #3984
tests: add more icinga2 conversion config
run indent-all.sh
contrib: add vim highlight script for Icinga syntax

fixes #4150
Merge branch 'feature/vim-highlight-4150' into next
Revert "run indent-all.sh"

This reverts commit b9db2fda564055d9ed15f5bbbb5a1802a7241617.
Merge branch 'fix/gcc-warnings-3984' into next
avail.c: fix typo
config: remark status_file/object_file mandatory for classic ui
Merge branch 'next' of git.icinga.org:icinga-core into next