Patch vulnerabilities

Patch vulnerabilities :
CVE-2014-8352
CVE-2014-8351
Follow up patch

Use mysqli_real_escape_string instead of mysql_real_escape_string
Migrate to mysqli

Migrate all mysql to mysqli for apply patch wyth
mysqli_real_escape_string
Merge remote-tracking branch 'upstream/master'

Conflicts:
	cookieviz/connect.php
	cookieviz/disconnect.php