add link on target and actor items

Also change a bit of css to adapt colors to the GLPI link's color.
fix SQL typo
Merge remote-tracking branch 'wawax/0.85/deploygroupwork' into 0.85+tasks_redux
remove superfluous spaces
check if we have an active profile in session

This bay be empty with use of cli_install.php and can be set when using
the --as-user <username> arguments with this script.
Merge branch '0.85+tasks_redux' of https://github.com/fusinv/fusioninventory-for-glpi into 0.85/walid

Conflicts:
	inc/deploygroup_dynamicdata.class.php