[SQL] Missing explicit primary key definition in table log_profiling
Refs #5226 Solves issue that prevents from updating segments when they are used by other reports.
Before there was same event used in two different update/delete, but they do require different logic.
Merge remote-tracking branch 'origin/master'
Refactor visit settings processing in its own class, so that a third party plugin could generate and reuse these values.
This could be useful to third party developer eg. Vincent building a Chat plugin for Piwik.
Fix typo
Merge pull request #287 from he667/missing_primarykey_log_profiling

[SQL] Missing explicit primary key definition in table log_profiling

Cheers for pull request!
Merge branch 'master' into DeviceDetector2

Conflicts:
	core/Tracker/Visit.php
Revert https://github.com/piwik/piwik/pull/287
it breaks the build Failed to setup fixture: TEST INITIALIZATION FAILED: SQLSTATE[42000]: Syntax error or access violation: 1170 BLOB/TEXT column 'query' used in key specification without a key length
Merge branch 'master' into DeviceDetector2